Class DataPropertyCollection
Represents a serializable collection of name/value properties.
Implements
Inherited Members
System.Collections.ObjectModel.Collection<Nevatech.Vsb.Repository.Entities.DataProperty>.System.Collections.IList.get_Item(System.Int32)
System.Collections.ObjectModel.Collection<Nevatech.Vsb.Repository.Entities.DataProperty>.System.Collections.IList.set_Item(System.Int32, System.Object)
Namespace: Nevatech.Vsb.Repository.Entities
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public sealed class DataPropertyCollection : Collection<DataProperty>, IList<DataProperty>, ICollection<DataProperty>, IList, ICollection, IReadOnlyList<DataProperty>, IReadOnlyCollection<DataProperty>, IEnumerable<DataProperty>, IEnumerable
Constructors
DataPropertyCollection()
Initializes an empty instance.
Declaration
public DataPropertyCollection()
DataPropertyCollection(IDictionary<String, Object>)
Initializes a new instance and populates if from the provided dictionary.
Declaration
public DataPropertyCollection(IDictionary<string, object> properties)
Parameters
Type | Name | Description |
---|---|---|
IDictionary<String, Object> | properties | Dictionary to be initialized from. |
Methods
Add(String, Object)
Adds new property to provided collection.
Declaration
public void Add(string name, object value)
Parameters
Type | Name | Description |
---|---|---|
String | name | Property name. |
Object | value | Property value. |
Deserialize(String)
Deserializes collection of properties from the provided XML string.
Declaration
public static DataPropertyCollection Deserialize(string value)
Parameters
Type | Name | Description |
---|---|---|
String | value | XML string representing a serialized collection of properties. |
Returns
Type | Description |
---|---|
DataPropertyCollection | Collection of properties deserialized from the provided XML string. |
Serialize()
Serializes collection to an XML string.
Declaration
public string Serialize()
Returns
Type | Description |
---|---|
String | XML string representing this collection. |