C# Class Antlr4.StringTemplate.Extensions.TypeExtensions

Show file Open project: antlr/antlrcs

Public Methods

Method Description
GetField ( this type, string name ) : FieldInfo
GetMethod ( this type, string name, Type parameters ) : MethodInfo
GetProperties ( this type ) : IEnumerable
GetProperty ( this type, string name ) : PropertyInfo
IsAssignableFrom ( this type, Type otherType ) : bool

Method Details

GetField() public static method

public static GetField ( this type, string name ) : FieldInfo
type this
name string
return System.Reflection.FieldInfo

GetMethod() public static method

public static GetMethod ( this type, string name, Type parameters ) : MethodInfo
type this
name string
parameters System.Type
return System.Reflection.MethodInfo

GetProperties() public static method

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

GetProperty() public static method

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

IsAssignableFrom() public static method

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