Breakdance_Assemblies_ObjectExtensions

Syntax

public static class Breakdance_Assemblies_ObjectExtensions

Inheritance

Methods

GetFieldValue

public static object GetFieldValue(this object obj, string fieldName, bool throwIfNull = true)

Parameters

Returns

object

GetPropertyValue

public static object GetPropertyValue(this object obj, string propertyName, bool throwIfNull = true)

Parameters

Returns

object

SetFieldValue

public static void SetFieldValue(this object obj, string fieldName, object val)

Parameters

SetPropertyValue

public static void SetPropertyValue(this object obj, string propertyName, object val)

Parameters

Remarks

Taken from https://stackoverflow.com/a/60529530/403765