C# Class Mustache.Scope

Represents a scope of keys.
Show file Open project: ExactTargetDev/mustache-sharp Class Usage Examples

Public Methods

Method Description
CreateChildScope ( ) : Scope

Creates a child scope that searches for keys in a default dictionary of key/value pairs.

CreateChildScope ( object source ) : Scope

Creates a child scope that searches for keys in the given object.

TryFind ( string name, object &value ) : bool

Private Methods

Method Description
Find ( string name ) : object

Attempts to find the value associated with the key with given name.

Scope ( object source ) : System

Initializes a new instance of a KeyScope.

Scope ( object source, Scope parent ) : System

Initializes a new instance of a KeyScope.

Set ( string key ) : void
Set ( string key, object value ) : void
onKeyFound ( string name, object value ) : object
onKeyNotFound ( string name, string member, object &value ) : bool
set ( SearchResults results, object value ) : void
toLookup ( object value ) : object>.IDictionary
tryFind ( string name ) : SearchResults
tryFindFirst ( SearchResults results ) : void

Method Details

CreateChildScope() public method

Creates a child scope that searches for keys in a default dictionary of key/value pairs.
public CreateChildScope ( ) : Scope
return Scope

CreateChildScope() public method

Creates a child scope that searches for keys in the given object.
public CreateChildScope ( object source ) : Scope
source object The object to search for keys in.
return Scope

TryFind() public method

public TryFind ( string name, object &value ) : bool
name string
value object
return bool