Class ErlVarBind
Dictionary of variables bound to terms
Inheritance
System.Object
ErlVarBind
Implements
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<ErlAtom, IErlObject>>
System.Collections.IEnumerable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: NFX.Erlang
Assembly: NFX.Erlang.dll
Syntax
public class ErlVarBind : IEnumerable<KeyValuePair<ErlAtom, IErlObject>>, IEnumerable
Properties
Count
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Empty
Declaration
public bool Empty { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Item[ErlAtom]
Declaration
public IErlObject this[ErlAtom name] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
ErlAtom | name |
Property Value
Type | Description |
---|---|
IErlObject |
Item[ErlVar]
Declaration
public IErlObject this[ErlVar name] { get; }
Parameters
Type | Name | Description |
---|---|---|
ErlVar | name |
Property Value
Type | Description |
---|---|
IErlObject |
Item[String]
Declaration
public IErlObject this[string name] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.String | name |
Property Value
Type | Description |
---|---|
IErlObject |
Methods
Add(ErlAtom, ErlTypeOrder, Object)
Add a variable binding associating value with variable name
Declaration
public void Add(ErlAtom name, ErlTypeOrder et, object o)
Parameters
Type | Name | Description |
---|---|---|
ErlAtom | name | Name of the variable |
ErlTypeOrder | et | Erlang type to use for conversion of the given CLR type |
System.Object | o | Value to associate with name |
Add(ErlAtom, IErlObject)
Add a variable binding associating value with variable name
Declaration
public void Add(ErlAtom name, IErlObject value)
Parameters
Type | Name | Description |
---|---|---|
ErlAtom | name | Name of the variable |
IErlObject | value | Value to associate with name |
Add(ErlVar, Object)
Add a variable binding converting an object to variable by name
Declaration
public void Add(ErlVar var, object o)
Parameters
Type | Name | Description |
---|---|---|
ErlVar | var | Name of the variable |
System.Object | o | Value to associate with name |
Cast<T>(ErlAtom)
Declaration
public T Cast<T>(ErlAtom name)where T : IErlObject
Parameters
Type | Name | Description |
---|---|---|
ErlAtom | name |
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T |
Clear()
Declaration
public void Clear()
GetEnumerator()
Declaration
public IEnumerator<KeyValuePair<ErlAtom, IErlObject>> GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<ErlAtom, IErlObject>> |
Merge(ErlVarBind)
Declaration
public void Merge(ErlVarBind other)
Parameters
Type | Name | Description |
---|---|---|
ErlVarBind | other |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()
Explicit Interface Implementations
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator |
Implements
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable