C# Class Ancestry.QueryProcessor.Compile.ReflectionUtility

Datei anzeigen Open project: Ancestry/DotQL

Public Properties

Property Type Description
ArrayLength System.Reflection.PropertyInfo
DateTimeTicksConstructor System.Reflection.ConstructorInfo
IEnumerableMoveNext System.Reflection.MethodInfo
IRepositoryFactoryGetRepository System.Reflection.MethodInfo
NameComponents System.Reflection.FieldInfo
NameFromComponents System.Reflection.MethodInfo
NameFromNative System.Reflection.MethodInfo
ObjectEquals System.Reflection.MethodInfo
ObjectGetHashCode System.Reflection.MethodInfo
RuntimeGetInitializer System.Reflection.MethodInfo
StringCompare System.Reflection.MethodInfo
StringConcat System.Reflection.MethodInfo
TimeSpanTicksConstructor System.Reflection.ConstructorInfo
TypeGetTypeFromHandle System.Reflection.MethodInfo

Public Methods

Method Description
GetDefaultValue ( System type ) : object
GetMethodExt ( this thisType, string name ) : MethodInfo

Search for a method by name and parameter types. Unlike GetMethod(), does 'loose' matching on generic parameter types, and searches base interfaces.

GetMethodExt ( this thisType, string name, BindingFlags bindingFlags ) : MethodInfo

Search for a method by name, parameter types, and binding flags. Unlike GetMethod(), does 'loose' matching on generic parameter types, and searches base interfaces.

IsFunction ( System type ) : bool
IsNary ( System type ) : bool
IsRepository ( System type ) : bool
IsSet ( System type ) : bool
IsTupleType ( System type ) : bool

Private Methods

Method Description
GetMethodExt ( MethodInfo &matchingMethod, System type, string name, BindingFlags bindingFlags ) : void
IsSimilarType ( this thisType, System type ) : bool

Determines if the two types are either identical, or are both generic parameters or generic types with generic parameters in the same locations (generic parameters match any other generic parameter, but NOT concrete types).

Method Details

GetDefaultValue() public static method

public static GetDefaultValue ( System type ) : object
type System
return object

GetMethodExt() public static method

Search for a method by name and parameter types. Unlike GetMethod(), does 'loose' matching on generic parameter types, and searches base interfaces.
public static GetMethodExt ( this thisType, string name ) : MethodInfo
thisType this
name string
return System.Reflection.MethodInfo

GetMethodExt() public static method

Search for a method by name, parameter types, and binding flags. Unlike GetMethod(), does 'loose' matching on generic parameter types, and searches base interfaces.
public static GetMethodExt ( this thisType, string name, BindingFlags bindingFlags ) : MethodInfo
thisType this
name string
bindingFlags BindingFlags
return System.Reflection.MethodInfo

IsFunction() public static method

public static IsFunction ( System type ) : bool
type System
return bool

IsNary() public static method

public static IsNary ( System type ) : bool
type System
return bool

IsRepository() public static method

public static IsRepository ( System type ) : bool
type System
return bool

IsSet() public static method

public static IsSet ( System type ) : bool
type System
return bool

IsTupleType() public static method

public static IsTupleType ( System type ) : bool
type System
return bool

Property Details

ArrayLength public_oe static_oe property

public static PropertyInfo,System.Reflection ArrayLength
return System.Reflection.PropertyInfo

DateTimeTicksConstructor public_oe static_oe property

public static ConstructorInfo,System.Reflection DateTimeTicksConstructor
return System.Reflection.ConstructorInfo

IEnumerableMoveNext public_oe static_oe property

public static MethodInfo,System.Reflection IEnumerableMoveNext
return System.Reflection.MethodInfo

IRepositoryFactoryGetRepository public_oe static_oe property

public static MethodInfo,System.Reflection IRepositoryFactoryGetRepository
return System.Reflection.MethodInfo

NameComponents public_oe static_oe property

public static FieldInfo,System.Reflection NameComponents
return System.Reflection.FieldInfo

NameFromComponents public_oe static_oe property

public static MethodInfo,System.Reflection NameFromComponents
return System.Reflection.MethodInfo

NameFromNative public_oe static_oe property

public static MethodInfo,System.Reflection NameFromNative
return System.Reflection.MethodInfo

ObjectEquals public_oe static_oe property

public static MethodInfo,System.Reflection ObjectEquals
return System.Reflection.MethodInfo

ObjectGetHashCode public_oe static_oe property

public static MethodInfo,System.Reflection ObjectGetHashCode
return System.Reflection.MethodInfo

RuntimeGetInitializer public_oe static_oe property

public static MethodInfo,System.Reflection RuntimeGetInitializer
return System.Reflection.MethodInfo

StringCompare public_oe static_oe property

public static MethodInfo,System.Reflection StringCompare
return System.Reflection.MethodInfo

StringConcat public_oe static_oe property

public static MethodInfo,System.Reflection StringConcat
return System.Reflection.MethodInfo

TimeSpanTicksConstructor public_oe static_oe property

public static ConstructorInfo,System.Reflection TimeSpanTicksConstructor
return System.Reflection.ConstructorInfo

TypeGetTypeFromHandle public_oe static_oe property

public static MethodInfo,System.Reflection TypeGetTypeFromHandle
return System.Reflection.MethodInfo