C# Class GameEngine.Extensions.ReflectionExtensions

Datei anzeigen Open project: MichaelAquilina/Some-2D-RPG

Public Methods

Method Description
GetProperty ( object target, string propertyName ) : object
SetProperty ( object target, string propertyName, object value ) : void
SmartConvert ( string value, Type target ) : object
SmartSetProperty ( object target, string propertyName, string value ) : void

Method Details

GetProperty() public static method

public static GetProperty ( object target, string propertyName ) : object
target object
propertyName string
return object

SetProperty() public static method

public static SetProperty ( object target, string propertyName, object value ) : void
target object
propertyName string
value object
return void

SmartConvert() public static method

public static SmartConvert ( string value, Type target ) : object
value string
target System.Type
return object

SmartSetProperty() public static method

public static SmartSetProperty ( object target, string propertyName, string value ) : void
target object
propertyName string
value string
return void