本文整理汇总了C#中CFNumberType类的典型用法代码示例。如果您正苦于以下问题:C# CFNumberType类的具体用法?C# CFNumberType怎么用?C# CFNumberType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CFNumberType类属于命名空间,在下文中一共展示了CFNumberType类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CFNumberGetValue_Double
internal static extern bool CFNumberGetValue_Double(IntPtr number, CFNumberType theType, ref double valuePtr);
示例2: CFNumberGetValue
internal static unsafe extern bool CFNumberGetValue(IntPtr number, CFNumberType theType, double* valuePtr);
示例3: CFNumberCreate_Int64
public static extern IntPtr CFNumberCreate_Int64(IntPtr number, CFNumberType theType, ref long valuePtr);
示例4: CFNumberCreate
internal static extern CFNumberRef CFNumberCreate (CFAllocatorRef allocator,CFNumberType theType,IntPtr valuePtr);
示例5: IsIntType
private static bool IsIntType(CFNumberType numType)
{
return (numType == CFNumberType.kCFNumberSInt8Type ||
numType == CFNumberType.kCFNumberSInt16Type ||
numType == CFNumberType.kCFNumberSInt32Type ||
numType == CFNumberType.kCFNumberSInt64Type ||
numType == CFNumberType.kCFNumberCharType ||
numType == CFNumberType.kCFNumberShortType ||
numType == CFNumberType.kCFNumberIntType ||
numType == CFNumberType.kCFNumberLongType ||
numType == CFNumberType.kCFNumberLongLongType);
}
示例6: CFNumberGetValue_Single
internal static extern bool CFNumberGetValue_Single(IntPtr number, CFNumberType theType, ref float valuePtr);
示例7: CFNumberGetValue
public static extern bool CFNumberGetValue(IntPtr number, CFNumberType type, out int value);
示例8: CFNumberGetValue
private static extern Boolean CFNumberGetValue(IntPtr/*CFNumber*/ Number, CFNumberType TheType, out Int64 Value);
示例9: CFNumberGetValue
internal static extern bool CFNumberGetValue (IntPtr number, CFNumberType theType, out long valuePtr);
示例10: CFNumberGetValue
public static extern Boolean CFNumberGetValue(IntPtr/*CFNumber*/ Number, CFNumberType TheType, out uint Value);
示例11: CFNumberCreate
private static extern IntPtr CFNumberCreate(IntPtr allocator, CFNumberType theType, ref Int32 Value);
示例12: CFNumberCreate
public IntPtr CFNumberCreate(IntPtr allocator, CFNumberType theType, ref Int32 Value)
{
return CoreFoundation.CFNumberCreate(allocator, theType, ref Value);
}
示例13: CFNumberGetValue
public extern static Boolean CFNumberGetValue(IntPtr/*CFNumber*/ Number, CFNumberType TheType, out double Value);
示例14: CFNumberGetValue_Int
internal static extern bool CFNumberGetValue_Int(IntPtr number, CFNumberType theType, ref int valuePtr);
示例15: CFNumberCreate
public static extern IntPtr CFNumberCreate(IntPtr intptr_2, CFNumberType enum20_0, IntPtr intptr_3);