ReflectionExtensions Class

Namespace
Shiny
Base Types
  • object
graph BT Type-->Base0["object"] Type["ReflectionExtensions"] class Type type-node

Syntax

public static class ReflectionExtensions

Methods

Name Value Summary
GetPropertyInfo<TSender, TRet>(TSender, Expression<Func<TSender, TRet>>) PropertyInfo
Reflects out property information based on the expression value
static
IsNullable(Type) bool
static
ReflectGet(object, string) object
Gets an objects property dynamically through reflection - will throw an exception if proper has no getter or property does not exists
static
ReflectGet<TSender, TReturn>(TSender, Expression<Func<TSender, TReturn>>) TReturn
Gets an objects property dynamically through reflection - will throw an exception if proper has no getter or property does not exists
static
ReflectSet(object, string, object) void
Sets an objects property dynamically through reflection - will throw an exception if proper has no setter, wrong type, or property does not exists
static
Unwrap(Type) Type
Unwraps nullable types if necessary
static

Extension Methods

Name Value Summary
ReflectGet(string) object
Gets an objects property dynamically through reflection - will throw an exception if proper has no getter or property does not exists
ReflectSet(string, object) void
Sets an objects property dynamically through reflection - will throw an exception if proper has no setter, wrong type, or property does not exists
GitHub