Class PreValueCollection
Represents the pre-value data for a DataType
Inheritance
System.Object
Namespace:System.Dynamic.ExpandoObject
Assembly:Umbraco.Core.dll
Syntax
public class PreValueCollection : IDeepCloneable
Constructors
PreValueCollection(IDictionary<String, PreValue>)
Declaration
public PreValueCollection(IDictionary<string, PreValue> preVals)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IDictionary<System.String, PreValue> |
preVals |
|
PreValueCollection(IEnumerable<PreValue>)
Declaration
public PreValueCollection(IEnumerable<PreValue> preVals)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<PreValue> |
preVals |
|
Properties
IsDictionaryBased
Check if it is a dictionary based collection
Declaration
public bool IsDictionaryBased { get; }
Property Value
Type |
Description |
System.Boolean |
|
PreValuesAsArray
Declaration
public IEnumerable<PreValue> PreValuesAsArray { get; set; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<PreValue> |
|
PreValuesAsDictionary
Declaration
public IDictionary<string, PreValue> PreValuesAsDictionary { get; set; }
Property Value
Type |
Description |
System.Collections.Generic.IDictionary<System.String, PreValue> |
|
Methods
DeepClone()
Declaration
public object DeepClone()
Returns
Type |
Description |
System.Object |
|
Regardless of how the pre-values are stored this will return as a dictionary, it will convert an array based to a dictionary
Declaration
public IDictionary<string, PreValue> FormatAsDictionary()
Returns
Type |
Description |
System.Collections.Generic.IDictionary<System.String, PreValue> |
|