Class LocalizableParameterValuesList
List of partially localizable values of process parameters.
Inheritance
Implements
Inherited Members
Namespace: Terrasoft.Core.Process
Assembly: Terrasoft.Core.dll
Syntax
[Serializable]
public class LocalizableParameterValuesList : List<LocalizableParameterValues>, IList<LocalizableParameterValues>, ICollection<LocalizableParameterValues>, IList, ICollection, IReadOnlyList<LocalizableParameterValues>, IReadOnlyCollection<LocalizableParameterValues>, IEnumerable<LocalizableParameterValues>, IEnumerable, ISerializable
Constructors
LocalizableParameterValuesList()
Initializes a new instance of the class LocalizableParameterValuesList.
Declaration
public LocalizableParameterValuesList()
LocalizableParameterValuesList(SerializationInfo, StreamingContext)
Declaration
protected LocalizableParameterValuesList(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | |
System.Runtime.Serialization.StreamingContext | context |
Methods
DeserializeData(String)
Deserializes the Json string.
Declaration
public static LocalizableParameterValuesList DeserializeData(string source)
Parameters
Type | Name | Description |
---|---|---|
System.String | source | Json string. |
Returns
Type | Description |
---|---|
LocalizableParameterValuesList | The object LocalizableParameterValuesList being deserialized. |
DeserializeFrom77FormatData(String, String[])
Deserializes the data which are used in version 7.7.
Declaration
public static LocalizableParameterValuesList DeserializeFrom77FormatData(string source, params string[] localizableItems)
Parameters
Type | Name | Description |
---|---|---|
System.String | source | Serialized data in version 7.7. |
System.String[] | localizableItems | Keys of the localizable values. |
Returns
Type | Description |
---|---|
LocalizableParameterValuesList | The object LocalizableParameterValuesList being deserialized. |
GetFrom77FormatList(List<Dictionary<String, Object>>, String[])
Converts the data which are used in version 7.7 to the list of the partially localizable values.
Declaration
public static LocalizableParameterValuesList GetFrom77FormatList(List<Dictionary<string, object>> source, params string[] localizableItems)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<System.Collections.Generic.Dictionary<System.String, System.Object>> | source | The data format is used in version 7.7. |
System.String[] | localizableItems | Keys of the localizable values. |
Returns
Type | Description |
---|---|
LocalizableParameterValuesList | The object LocalizableParameterValuesList being converted. |
GetLocalizableItems()
Returns list values that are localizable.
Declaration
public LocalizableParameterValuesList GetLocalizableItems()
Returns
Type | Description |
---|---|
LocalizableParameterValuesList | Instance of the type LocalizableParameterValuesList. |
GetLocalizableValues(ICollection<LocalizableValue>)
Fills out collection of the localizable values.
Declaration
public virtual void GetLocalizableValues(ICollection<LocalizableValue> values)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.ICollection<LocalizableValue> | values | Collection of the localizable values. |
GetObjectData(SerializationInfo, StreamingContext)
Populates a SerializationInfo with the data needed to serialize the target object.
Declaration
public virtual void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | Serialization info. |
System.Runtime.Serialization.StreamingContext | context | The destination for this serialization. |
GetSerializedItems()
Returns all items in serialized state.
Declaration
public string GetSerializedItems()
Returns
Type | Description |
---|---|
System.String | All items in serialized state. |
GetSerializedMetaDataItems()
Returns serialized list values that are not localizable.
Declaration
public string GetSerializedMetaDataItems()
Returns
Type | Description |
---|---|
System.String | Serialized list values that are not localizable. |
InitializeLocalizableValues(IResourceStorage, String, String, Boolean)
Initializes localizable values.
Declaration
public virtual void InitializeLocalizableValues(IResourceStorage storage, string resourceManagerName, string resourceGroupName, bool resetCachedValues = false)
Parameters
Type | Name | Description |
---|---|---|
IResourceStorage | storage | Resource repository. |
System.String | resourceManagerName | Name of the resource manager. |
System.String | resourceGroupName | Resource group name. |
System.Boolean | resetCachedValues | Determines that it can reset cached values. |
LoadLocalizableValues()
Loads localizable values.
Declaration
public virtual void LoadLocalizableValues()
SetupDefaultLocalizableValues(String, String)
Sets default localizable value.
Declaration
public void SetupDefaultLocalizableValues(string recordName, string defaultValue)
Parameters
Type | Name | Description |
---|---|---|
System.String | recordName | Key of the localizable value. |
System.String | defaultValue | Default value. |
To77FormatList()
Converts the data which are used in version 7.7.
Declaration
public List<Dictionary<string, object>> To77FormatList()
Returns
Type | Description |
---|---|
System.Collections.Generic.List<System.Collections.Generic.Dictionary<System.String, System.Object>> | The data which are used in version 7.7. |