RazorEngine


DynamicViewBag

Defined in RazorEngine.dll.

Defines a dynamic view bag.

Constructors

ConstructorDescription
new()
Signature: unit -> unit

Create a new DynamicViewBag.

new(dictionary)
Signature: dictionary:IDictionary<string,obj> -> unit

Create a new DynamicViewBag by copying the given dictionary.

new(viewbag)
Signature: viewbag:DynamicViewBag -> unit

Create a copy of the given DynamicViewBag.

Instance members

Instance memberDescription
AddDictionary(dictionary)
Signature: dictionary:IDictionary<string,obj> -> unit

Adds the given dictionary to the current DynamicViewBag instance.

AddDictionaryValues(valueDictionary)
Signature: valueDictionary:IDictionary -> unit

Add the given dictionary to the current DynamicViewBag

AddDictionaryValuesEx(valueDictionary)
Signature: valueDictionary:IDictionary<string,obj> -> unit

Add the given dictionary to the current DynamicViewBag

AddListValues(...)
Signature: (valueList:IList * keyPropertyName:string) -> unit

Adds the given list by evaluating the given property name.

AddValue(propertyName, value)
Signature: (propertyName:string * value:obj) -> unit

Adds a single value.

GetDynamicMemberNames()
Signature: unit -> IEnumerable<string>
Modifiers: abstract

Gets the set of dynamic member names.

Returns: An instance of .

TryGetMember(binder, result)
Signature: (binder:GetMemberBinder * result:byref<obj>) -> bool
Modifiers: abstract

Attempts to read a dynamic member from the object.

Returns: True, always.

TrySetMember(binder, value)
Signature: (binder:SetMemberBinder * value:obj) -> bool
Modifiers: abstract

Attempts to set a value on the object.

Returns: True, always.

Fork me on GitHub