Method Generators
Tea Framework provides simple utilities for retrieving and setting the values of fields and properties by generic methods are runtime to perform operations, which is significanly faster than the normal GetX and SetX methods if used more than once.
Examples
Getting the Value of a Field
typeof(MyType).InvokeFieldGetter("MyField", myInstance); // returns the value of MyType.MyFieldSetting the Value of a Field
typeof(MyType).InvokeFieldSetter("MyField", myInstance, newInstance); // set the value of MyType.MyFieldGetting the Value of a Property
typeof(MyType).InvokePropertyGetter("MyProperty", myInstance); // returns the value of MyType.MyPropertySetting the Value of a Property
typeof(MyType).InvokePropertySetter("MyProperty", myInstance, newInstance); // set the value of MyType.MyPropertyLast updated