Table of Contents

Class LocalizedString

Namespace
TimeCockpit.Data.Localization.Default
Assembly
TimeCockpit.Data.dll

class representing a string localization for a string used in the model (e.g. FriendlyName, BackReferenceFriendlyName, etc)

public class LocalizedString
Inheritance
Object
LocalizedString
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()

Constructors

LocalizedString(String, String, Boolean)

Initializes a new instance of the LocalizedString class.

public LocalizedString(string culture, string text, bool dirty)

Parameters

culture String

the culture key this string localization is for.

text String

the text.

dirty Boolean

true if the string should be marked as dirty.

LocalizedString(LocalizedString)

Initializes a new instance of the LocalizedString class. Copy Constructor.

public LocalizedString(LocalizedString source)

Parameters

source LocalizedString

the source to copy from.

Properties

Culture

Gets the culture of the localized string.

public string Culture { get; }

Property Value

String

Dirty

Gets a value indicating whether this localized string has been updated.

public bool Dirty { get; }

Property Value

Boolean

Text

Gets or sets the localized text. Marks the instance as dirty.

public string Text { get; set; }

Property Value

String

Methods

ClearDirtyFlag()

Clears the dirty flag.

public void ClearDirtyFlag()