Class LocalizedString
class representing a string localization for a string used in the model (e.g. FriendlyName, BackReferenceFriendlyName, etc)
Inheritance
System.Object
LocalizedString
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: TimeCockpit.Data.Localization.Default
Assembly: TimeCockpit.Data.dll
Syntax
public class LocalizedString
Constructors
LocalizedString(String, String, Boolean)
Initializes a new instance of the LocalizedString class.
Declaration
public LocalizedString(string culture, string text, bool dirty)
Parameters
Type | Name | Description |
---|---|---|
System.String | culture | the culture key this string localization is for. |
System.String | text | the text. |
System.Boolean | dirty | true if the string should be marked as dirty. |
LocalizedString(LocalizedString)
Initializes a new instance of the LocalizedString class. Copy Constructor.
Declaration
public LocalizedString(LocalizedString source)
Parameters
Type | Name | Description |
---|---|---|
LocalizedString | source | the source to copy from. |
Properties
Culture
Gets the culture of the localized string.
Declaration
public string Culture { get; }
Property Value
Type | Description |
---|---|
System.String |
Dirty
Gets a value indicating whether this localized string has been updated.
Declaration
public bool Dirty { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Text
Gets or sets the localized text. Marks the instance as dirty.
Declaration
public string Text { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
ClearDirtyFlag()
Clears the dirty flag.
Declaration
public void ClearDirtyFlag()