C# Класс Mustache.Scope

Represents a scope of keys.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

CreateChildScope() публичный Метод

Creates a child scope that searches for keys in a default dictionary of key/value pairs.
public CreateChildScope ( ) : Scope
Результат Scope

CreateChildScope() публичный Метод

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.
Результат Scope

TryFind() публичный Метод

public TryFind ( string name, object &value ) : bool
name string
value object
Результат bool