C# Class ToggleableBindings.Extensions.ReflectionExtensions

Mostra file Open project: Unordinal/HollowKnight.ToggleableBindings

Public Methods

Method Description
GetCustomAttributes ( MemberInfo element, bool inherit ) : IEnumerable
GetMemberValue ( MemberInfo member, object? backingObject ) : object?
GetMemberValue ( Type type, string memberName, object? backingObject ) : object?
GetMemberValue ( MemberInfo member, object? backingObject ) : T?
GetMemberValue ( Type type, string memberName, object? backingObject ) : T?
GetUnderlyingType ( MemberInfo member ) : Type
IsAssignableTo ( Type type, Type other ) : bool
IsNullable ( Type type ) : bool
SetMemberValue ( MemberInfo member, object? backingObject, object? value, object[]? index = null ) : void

Method Details

GetCustomAttributes() public static method

public static GetCustomAttributes ( MemberInfo element, bool inherit ) : IEnumerable
element MemberInfo
inherit bool
return IEnumerable

GetMemberValue() public static method

public static GetMemberValue ( MemberInfo member, object? backingObject ) : object?
member MemberInfo
backingObject object?
return object?

GetMemberValue() public static method

public static GetMemberValue ( Type type, string memberName, object? backingObject ) : object?
type Type
memberName string
backingObject object?
return object?

GetMemberValue() public static method

public static GetMemberValue ( MemberInfo member, object? backingObject ) : T?
member MemberInfo
backingObject object?
return T?

GetMemberValue() public static method

public static GetMemberValue ( Type type, string memberName, object? backingObject ) : T?
type Type
memberName string
backingObject object?
return T?

GetUnderlyingType() public static method

public static GetUnderlyingType ( MemberInfo member ) : Type
member MemberInfo
return Type

IsAssignableTo() public static method

public static IsAssignableTo ( Type type, Type other ) : bool
type Type
other Type
return bool

IsNullable() public static method

public static IsNullable ( Type type ) : bool
type Type
return bool

SetMemberValue() public static method

public static SetMemberValue ( MemberInfo member, object? backingObject, object? value, object[]? index = null ) : void
member MemberInfo
backingObject object?
value object?
index object[]?
return void