C# Class YamlDotNet.ReflectionExtensions

Show file Open project: aaubry/YamlDotNet

Public Methods

Method Description
BaseType ( this type ) : Type
GetGenericArguments ( this type ) : System.Type[]
GetGetMethod ( this property ) : MethodInfo
GetInterfaces ( this type ) : IEnumerable
GetPublicInstanceMethod ( this type, string name ) : MethodInfo
GetPublicProperties ( this type ) : IEnumerable
GetPublicProperty ( this type, string name ) : PropertyInfo
GetPublicStaticMethod ( this type, string name ) : MethodInfo
GetPublicStaticMethods ( this type ) : IEnumerable
GetSetMethod ( this property ) : MethodInfo
GetTypeCode ( this type ) : TypeCode
HasDefaultConstructor ( this type ) : bool

Determines whether the specified type has a default constructor.

IsAssignableFrom ( this type, Type source ) : bool
IsAssignableFrom ( this type, TypeInfo source ) : bool
IsEnum ( this type ) : bool
IsGenericType ( this type ) : bool
IsInstanceOf ( this type, object o ) : bool
IsInterface ( this type ) : bool
IsValueType ( this type ) : bool
Unwrap ( this ex ) : Exception

Method Details

BaseType() public static method

public static BaseType ( this type ) : Type
type this
return System.Type

GetGenericArguments() public static method

public static GetGenericArguments ( this type ) : System.Type[]
type this
return System.Type[]

GetGetMethod() public static method

public static GetGetMethod ( this property ) : MethodInfo
property this
return System.Reflection.MethodInfo

GetInterfaces() public static method

public static GetInterfaces ( this type ) : IEnumerable
type this
return IEnumerable

GetPublicInstanceMethod() public static method

public static GetPublicInstanceMethod ( this type, string name ) : MethodInfo
type this
name string
return System.Reflection.MethodInfo

GetPublicProperties() public static method

public static GetPublicProperties ( this type ) : IEnumerable
type this
return IEnumerable

GetPublicProperty() public static method

public static GetPublicProperty ( this type, string name ) : PropertyInfo
type this
name string
return System.Reflection.PropertyInfo

GetPublicStaticMethod() public static method

public static GetPublicStaticMethod ( this type, string name ) : MethodInfo
type this
name string
return System.Reflection.MethodInfo

GetPublicStaticMethods() public static method

public static GetPublicStaticMethods ( this type ) : IEnumerable
type this
return IEnumerable

GetSetMethod() public static method

public static GetSetMethod ( this property ) : MethodInfo
property this
return System.Reflection.MethodInfo

GetTypeCode() public static method

public static GetTypeCode ( this type ) : TypeCode
type this
return TypeCode

HasDefaultConstructor() public static method

Determines whether the specified type has a default constructor.
public static HasDefaultConstructor ( this type ) : bool
type this The type.
return bool

IsAssignableFrom() public static method

public static IsAssignableFrom ( this type, Type source ) : bool
type this
source System.Type
return bool

IsAssignableFrom() public static method

public static IsAssignableFrom ( this type, TypeInfo source ) : bool
type this
source System.Reflection.TypeInfo
return bool

IsEnum() public static method

public static IsEnum ( this type ) : bool
type this
return bool

IsGenericType() public static method

public static IsGenericType ( this type ) : bool
type this
return bool

IsInstanceOf() public static method

public static IsInstanceOf ( this type, object o ) : bool
type this
o object
return bool

IsInterface() public static method

public static IsInterface ( this type ) : bool
type this
return bool

IsValueType() public static method

public static IsValueType ( this type ) : bool
type this
return bool

Unwrap() public static method

public static Unwrap ( this ex ) : Exception
ex this
return System.Exception