SymbolResolver Class
Definition
SymbolResolver is an extension for providing a host LocationReferenceEnvironment containing objects that can be dereferenced by a string name. Values provided through a SymbolResolver are not persisted. Persistence of SymbolResolver values is a host responsibility.
public ref class SymbolResolver sealed : System::Collections::Generic::ICollection<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>>, System::Collections::Generic::IDictionary<System::String ^, System::Object ^>, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>>
public sealed class SymbolResolver : System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string,object>>, System.Collections.Generic.IDictionary<string,object>, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object>>
type SymbolResolver = class
interface IDictionary<string, obj>
interface ICollection<KeyValuePair<string, obj>>
interface seq<KeyValuePair<string, obj>>
interface IEnumerable
Public NotInheritable Class SymbolResolver
Implements ICollection(Of KeyValuePair(Of String, Object)), IDictionary(Of String, Object), IEnumerable(Of KeyValuePair(Of String, Object))
- Inheritance
-
SymbolResolver
- Implements
-
ICollection<KeyValuePair<String,Object>> ICollection<KeyValuePair<TKey,TValue>> IDictionary<String,Object> IEnumerable<KeyValuePair<String,Object>> IEnumerable<KeyValuePair<TKey,TValue>> IEnumerable<T> IEnumerable
Constructors
SymbolResolver() |
Initializes a new instance of the SymbolResolver class. |
Properties
Count |
Gets the number of symbols contained in the SymbolResolver. |
IsReadOnly |
Gets a value that indicates whether the dictionary of symbols in the SymbolResolver is read-only. |
Item[String] |
Gets or sets the value of the item associated with the specified key. |
Keys |
Gets a collection of all keys in the SymbolResolver. |
Values |
Gets a collection of all values in the SymbolResolver. |
Methods
Add(KeyValuePair<String,Object>) |
Adds a symbol using the specified key/value pair. |
Add(String, Object) |
Adds a symbol using the specified symbol name and value. |
Add(String, Object, Type) |
Adds a symbol using the specified symbol name, value, and type. |
Add(String, Type) |
Adds a symbol using the specified symbol name and type. |
AsLocationReferenceEnvironment() |
Returns a LocationReferenceEnvironment instance that enables access to references of symbol values in SymbolResolver represented as LocationReference objects. |
Clear() |
Removes all symbols from the SymbolResolver. |
Contains(KeyValuePair<String,Object>) |
Returns a value that indicates whether the SymbolResolver contains the specified symbol. |
ContainsKey(String) |
Returns a value that indicates whether the SymbolResolver contains a symbol with the specified key. |
CopyTo(KeyValuePair<String,Object>[], Int32) |
Copies the symbols in the SymbolResolver to an existing one-dimensional array of key/value pairs, starting at the specified array index. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetEnumerator() |
Returns an enumerator that iterates through a collection of key/value pairs where the keys are the symbol names and values the symbol values. |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
Remove(KeyValuePair<String,Object>) |
Removes the specified symbol from the SymbolResolver. |
Remove(String) |
Removes a symbol from the SymbolResolver using a specified key. |
ToString() |
Returns a string that represents the current object. (Inherited from Object) |
TryGetValue(String, Object) |
Gets the value associated with the specified key. |
Explicit Interface Implementations
IEnumerable.GetEnumerator() |
Returns an enumerator that iterates through a collection of key/value pairs where the keys are the symbol names and values the symbol values. |
Extension Methods
CopyToDataTable<T>(IEnumerable<T>) |
Returns a DataTable that contains copies of the DataRow objects, given an input IEnumerable<T> object where the generic parameter |
CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) |
Copies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter |
CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) |
Copies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter |
Cast<TResult>(IEnumerable) |
Casts the elements of an IEnumerable to the specified type. |
OfType<TResult>(IEnumerable) |
Filters the elements of an IEnumerable based on a specified type. |
AsParallel(IEnumerable) |
Enables parallelization of a query. |
AsQueryable(IEnumerable) |
Converts an IEnumerable to an IQueryable. |
Ancestors<T>(IEnumerable<T>) |
Returns a collection of elements that contains the ancestors of every node in the source collection. |
Ancestors<T>(IEnumerable<T>, XName) |
Returns a filtered collection of elements that contains the ancestors of every node in the source collection. Only elements that have a matching XName are included in the collection. |
DescendantNodes<T>(IEnumerable<T>) |
Returns a collection of the descendant nodes of every document and element in the source collection. |
Descendants<T>(IEnumerable<T>) |
Returns a collection of elements that contains the descendant elements of every element and document in the source collection. |
Descendants<T>(IEnumerable<T>, XName) |
Returns a filtered collection of elements that contains the descendant elements of every element and document in the source collection. Only elements that have a matching XName are included in the collection. |
Elements<T>(IEnumerable<T>) |
Returns a collection of the child elements of every element and document in the source collection. |
Elements<T>(IEnumerable<T>, XName) |
Returns a filtered collection of the child elements of every element and document in the source collection. Only elements that have a matching XName are included in the collection. |
InDocumentOrder<T>(IEnumerable<T>) |
Returns a collection of nodes that contains all nodes in the source collection, sorted in document order. |
Nodes<T>(IEnumerable<T>) |
Returns a collection of the child nodes of every document and element in the source collection. |
Remove<T>(IEnumerable<T>) |
Removes every node in the source collection from its parent node. |