C# Type IsUnicodeClass
Description
Type IsUnicodeClass
gets a value indicating whether
the string format attribute UnicodeClass is selected for the Type.
Syntax
Type.IsUnicodeClass
has the following syntax.
public bool IsUnicodeClass { get; }
Example
/*from ww w .java2 s. c om*/
using System;
namespace SystemType
{
public class MyClass
{
sealed public class MyTestClass
{
}
public static void Main(string []args)
{
try
{
bool myBool = false;
MyTestClass myTestClassInstance = new MyTestClass();
Type myType = myTestClassInstance.GetType();
Console.WriteLine(myType.IsUnicodeClass);
}
catch (Exception e)
{
Console.WriteLine("\nAn exception occurred: {0}",e.Message);
}
}
}
}
The code above generates the following result.