ReflectionExtensions.

ReflectSet(object, string, object) Method

Summary

Sets an objects property dynamically through reflection - will throw an exception if proper has no setter, wrong type, or property does not exists
Namespace
Shiny
Containing Type
ReflectionExtensions

Syntax

public static void ReflectSet(this object obj, string propertyName, object value)

Parameters

Name Type Description
obj object
propertyName string
value object

Return Value

Type Description
void
GitHub