C# Класс Mustache.ArgumentCollection

Associates parameters to their argument values.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
AddArgument ( Mustache.TagParameter parameter, string key ) : void

Associates the given parameter to the key placeholder.

If the key is null, the default value of the parameter will be used.

ArgumentCollection ( ) : System

Initializes a new instance of an ArgumentCollection.

GetArgumentKeyNames ( ) : object>.Dictionary
GetArguments ( Scope keyScope, Scope contextScope ) : object>.Dictionary

Substitutes the key placeholders with their respective values.

GetKey ( Mustache.TagParameter parameter ) : string

Gets the key that will be used to find the substitute value.

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

AddArgument() публичный метод

Associates the given parameter to the key placeholder.
If the key is null, the default value of the parameter will be used.
public AddArgument ( Mustache.TagParameter parameter, string key ) : void
parameter Mustache.TagParameter The parameter to associate the key with.
key string The key placeholder used as the argument.
Результат void

ArgumentCollection() публичный метод

Initializes a new instance of an ArgumentCollection.
public ArgumentCollection ( ) : System
Результат System

GetArgumentKeyNames() публичный метод

public GetArgumentKeyNames ( ) : object>.Dictionary
Результат object>.Dictionary

GetArguments() публичный метод

Substitutes the key placeholders with their respective values.
public GetArguments ( Scope keyScope, Scope contextScope ) : object>.Dictionary
keyScope Scope The key/value pairs in the current lexical scope.
contextScope Scope The key/value pairs in current context.
Результат object>.Dictionary

GetKey() публичный метод

Gets the key that will be used to find the substitute value.
public GetKey ( Mustache.TagParameter parameter ) : string
parameter Mustache.TagParameter
Результат string