C# Class Scriban.Runtime.TypedMemberAccessor

Inheritance: IMemberAccessor
Show file Open project: lunet-io/scriban Class Usage Examples

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
TypedMemberAccessor ( Type targetType, IMemberRenamer renamer ) : System

Private Methods

Method Description
PrepareMembers ( ) : void
Rename ( string name ) : string

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

TypedMemberAccessor() public method

public TypedMemberAccessor ( Type targetType, IMemberRenamer renamer ) : System
targetType System.Type
renamer IMemberRenamer
return System