ClassFindExpressionCollection<T>
Class to manage a collection of FindParam objects.
Definition
Namespace:ArtOfTest.WebAii.ObjectModel
Assembly:ArtOfTest.WebAii.dll
Type Parameters:
T
Syntax:
public class FindExpressionCollection<T> : Dictionary<string, T>, IDictionary<string, T>, ICollection<KeyValuePair<string, T>>, IDictionary, ICollection, IReadOnlyDictionary<string, T>, IReadOnlyCollection<KeyValuePair<string, T>>, IEnumerable<KeyValuePair<string, T>>, IEnumerable, ISerializable, IDeserializationCallback, IXmlSerializable where T : IFindExpression
Inheritance: objectDictionary<string, T>FindExpressionCollection<T>
Implements:
Inherited Members
Constructors
FindExpressionCollection()
Create a new FindExpressionCollection that also be serialized.
Declaration
public FindExpressionCollection()
Properties
ReturnNullIfNotFound
Gets/Sets whether to throw or return null if a FindExpressions is not found.
this[string]
Access a FindExpression using its key.
Declaration
public T this[string key] { get; }
Parameters
key
The key.
Property Value
T
The FindExpression object.
Methods
Add(string, T)
Add a new FindExpression item.
Declaration
public void Add(string key, T param)
Parameters
key
The key.
param
T
The FindExpression object.
GetSchema()
Return the schema used for serialization.
LoadFromFile(string)
Load a FindParamCollection from a file.
Declaration
public static FindExpressionCollection<T> LoadFromFile(string fileName)
Parameters
fileName
The file name to load the xml from.
Returns
The FindParamCollection object.
LoadFromXml(string)
Load a FindParamCollection from an xml persisted string.
Declaration
public static FindExpressionCollection<T> LoadFromXml(string xml)
Parameters
xml
The string string.
Returns
The FindParamCollection object.
ReadXml(XmlReader)
Deserialized from the xmlReader and initialize the object
Declaration
public void ReadXml(XmlReader reader)
Parameters
reader
The reader.
Implements
Save(string)
Serialized and saves the current collection to a file. You can later load that file using FindParamCollection.Load().
Declaration
public void Save(string fileName)
Parameters
fileName
The file name to save to.
ToXml()
Serialize and return the current FindParamCollection as a string. You can later use that string to create a FindParamCollection using the .Load().
Declaration
public string ToXml()
Returns
The serialized Xml that represents this object.
WriteXml(XmlWriter)
Serialize this object to the XmlWriter
Declaration
public void WriteXml(XmlWriter writer)
Parameters
writer
The writer.
Implements