本文整理汇总了C#中Class.description方法的典型用法代码示例。如果您正苦于以下问题:C# Class.description方法的具体用法?C# Class.description怎么用?C# Class.description使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Class
的用法示例。
在下文中一共展示了Class.description方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: UnicharString
public void UnicharString()
{
NSObject s = new Class("NSString").Call("stringWithCharacters:length:", Marshal.StringToHGlobalUni("hello"), (uint) "hello".Length).To<NSObject>();
Assert.AreEqual("hello", s.description());
}
示例2: UShort2
public void UShort2()
{
NSObject n = new Class("NSNumber").Call("numberWithUnsignedShort:", 'x').To<NSObject>();
Assert.AreEqual("120", n.description());
}
示例3: ULongLong
public void ULongLong()
{
NSObject n = new Class("NSNumber").Call("numberWithUnsignedLongLong:", 17UL).To<NSObject>();
Assert.AreEqual("17", n.description());
}
示例4: UChar
public void UChar()
{
NSObject n = new Class("NSNumber").Call("numberWithUnsignedChar:", (byte) 17).To<NSObject>();
Assert.AreEqual("17", n.description());
}
示例5: Short
public void Short()
{
NSObject n = new Class("NSNumber").Call("numberWithShort:", (short) 17).To<NSObject>();
Assert.AreEqual("17", n.description());
}
示例6: SChar2
public void SChar2()
{
NSObject n = new Class("NSNumber").Call("numberWithChar:", true).To<NSObject>();
Assert.AreEqual("1", n.description());
}
示例7: Object2
public void Object2()
{
NSObject s = new Class("NSString").Call("stringWithUTF8String:", Marshal.StringToHGlobalAuto("hello")).To<NSObject>();
NSObject t = new Class("NSString").Call("stringWithString:", (IntPtr) s).To<NSObject>();
Assert.AreEqual("hello", t.description());
}