C# Class Scriban.Runtime.ScriptObjectExtensions.ScriptObjectAccessor

Inheritance: IMemberAccessor
Datei anzeigen Open project: lunet-io/scriban

Public Methods

Method Description
GetValue ( object target, string member ) : object
HasMember ( object target, string member ) : bool
SetReadOnly ( object target, string member, bool isReadOnly ) : void
TrySetValue ( object target, string member, object value ) : bool

Method Details

GetValue() public method

public GetValue ( object target, string member ) : object
target object
member string
return object

HasMember() public method

public HasMember ( object target, string member ) : bool
target object
member string
return bool

SetReadOnly() public method

public SetReadOnly ( object target, string member, bool isReadOnly ) : void
target object
member string
isReadOnly bool
return void

TrySetValue() public method

public TrySetValue ( object target, string member, object value ) : bool
target object
member string
value object
return bool