+
+
+ Class PropertyAccessor<T, U>
+
+ A type containing utilities for accessing non-public properties of an object.
+
+
+
+
Inheritance
+
+
PropertyAccessor<T, U>
+
+
+
Inherited Members
+
+
+
+
+
+
+
+
+
+ Assembly: IPA.Loader.dll
+ Syntax
+
+
public static class PropertyAccessor<T, U>
+
+ Type Parameters
+
+
+
+ Name |
+ Description |
+
+
+
+
+ T |
+ the type that the properties are on
+ |
+
+
+ U |
+ the type of the property to access
+ |
+
+
+
+ Methods
+
+
+ |
+ Improve this Doc
+
+
+ View Source
+
+
+ Get(T, String)
+ Gets the value of the property identified by name
on obj
.
+
+
+ Declaration
+
+
public static U Get(T obj, string name)
+
+ Parameters
+
+
+
+ Type |
+ Name |
+ Description |
+
+
+
+
+ T |
+ obj |
+ the instance to access
+ |
+
+
+ String |
+ name |
+ the name of the property
+ |
+
+
+
+ Returns
+
+
+
+ Type |
+ Description |
+
+
+
+
+ U |
+ the value of the property
+ |
+
+
+
+ Exceptions
+
+ See Also
+
+
+ |
+ Improve this Doc
+
+
+ View Source
+
+
+ Get(ref T, String)
+ Gets the value of the property identified by name
on obj
.
+
+
+ Declaration
+
+
public static U Get(ref T obj, string name)
+
+ Parameters
+
+
+
+ Type |
+ Name |
+ Description |
+
+
+
+
+ T |
+ obj |
+ the instance to access
+ |
+
+
+ String |
+ name |
+ the name of the property
+ |
+
+
+
+ Returns
+
+
+
+ Type |
+ Description |
+
+
+
+
+ U |
+ the value of the property
+ |
+
+
+
+
+
+ Exceptions
+
+ See Also
+
+
+ |
+ Improve this Doc
+
+
+ View Source
+
+
+ GetGetter(String)
+
+
+ Declaration
+
+
public static PropertyAccessor<T, U>.Getter GetGetter(string name)
+
+ Parameters
+
+
+
+ Type |
+ Name |
+ Description |
+
+
+
+
+ String |
+ name |
+ the name of the property
+ |
+
+
+
+ Returns
+
+ Exceptions
+
+
+ |
+ Improve this Doc
+
+
+ View Source
+
+
+ GetSetter(String)
+
+
+ Declaration
+
+
public static PropertyAccessor<T, U>.Setter GetSetter(string name)
+
+ Parameters
+
+
+
+ Type |
+ Name |
+ Description |
+
+
+
+
+ String |
+ name |
+ the name of the property
+ |
+
+
+
+ Returns
+
+ Exceptions
+
+
+ |
+ Improve this Doc
+
+
+ View Source
+
+
+ Set(T, String, U)
+ Sets the value of the property identified by name
on obj
.
+
+
+ Declaration
+
+
public static void Set(T obj, string name, U val)
+
+ Parameters
+
+
+
+ Type |
+ Name |
+ Description |
+
+
+
+
+ T |
+ obj |
+ the instance to access
+ |
+
+
+ String |
+ name |
+ the name of the property
+ |
+
+
+ U |
+ val |
+ the new value of the property
+ |
+
+
+
+
+
+ Exceptions
+
+ See Also
+
+
+ |
+ Improve this Doc
+
+
+ View Source
+
+
+ Set(ref T, String, U)
+ Sets the value of the property identified by name
on obj
.
+
+
+ Declaration
+
+
public static void Set(ref T obj, string name, U val)
+
+ Parameters
+
+
+
+ Type |
+ Name |
+ Description |
+
+
+
+
+ T |
+ obj |
+ the instance to access
+ |
+
+
+ String |
+ name |
+ the name of the property
+ |
+
+
+ U |
+ val |
+ the new value of the property
+ |
+
+
+
+
+
+ Exceptions
+
+ See Also
+
+