本文整理汇总了C#中System.Object.Select方法的典型用法代码示例。如果您正苦于以下问题:C# Object.Select方法的具体用法?C# Object.Select怎么用?C# Object.Select使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Object
的用法示例。
在下文中一共展示了Object.Select方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: NSOpenGLPixelFormat
/// <summary>
/// <para>Returns an NSOpenGLPixelFormat object initialized with specified pixel format attributes.</para>
/// <para>Original signature is '- (id)initWithAttributes:(const NSOpenGLPixelFormatAttribute *)attribs'</para>
/// <para>Available in Mac OS X v10.0 and later.</para>
/// </summary>
public NSOpenGLPixelFormat(Object[] attribs) : this(attribs.Select(Convert.ToUInt32).ToArray())
{
}
示例2: Write
public LogWriter Write(Logger logger, Level level, String format, Object[] args)
{
// todo. this will mess up custom format specifiers!
RawWrite(logger, level, String.Format(format, args.Select(a => a.ToLog()).ToArray()));
return this;
}
示例3: SetValuesForParameter
/// <summary>
/// <para>Sets the value of the specified parameter.</para>
/// <para>Original signature is '- (void)setValues:(const GLint *)vals forParameter:(NSOpenGLContextParameter)param'</para>
/// <para>Available in Mac OS X v10.0 and later.</para>
/// </summary>
/// <param name = "vals">The new value (or values) for the parameter.</param>
/// <param name = "param">The parameter you want to modify. For a list of parameters, see NSOpenGLContextParameter.</param>
public virtual void SetValuesForParameter(Object[] vals, NSOpenGLContextParameter param)
{
int[] values = vals.Select(Convert.ToInt32).ToArray();
this.SetValuesForParameter(values, param);
}