1. Stylelabs.M.Sdk.Models.Base

Class CultureInsensitiveProperty

A culture sensitive property.

Inheritance

object

MemberBase

PropertyBase

CultureInsensitiveProperty

Implements

ICultureInsensitiveProperty

IProperty

IMember

IDirtyTracking

Inherited Members

PropertyBase.IsMultiLanguage

PropertyBase.DataType

PropertyBase.DefinitionType

MemberBase.Name

MemberBase.IsTracking

Namespace: StylelabsStylelabs.MSdkStylelabs.M.Sdk.ModelsBase

Assembly: Stylelabs.M.Sdk.dll

Syntax

public class CultureInsensitiveProperty : PropertyBase, ICultureInsensitiveProperty, IProperty, IMember, IDirtyTracking

Constructors

CultureInsensitiveProperty(string, Type, object)

Initializes a new instance of the CultureInsensitiveProperty class.

Declaration

public CultureInsensitiveProperty(string name, Type type, object value)

Parameters

TypeNameDescription
stringnameThe name.
TypetypeThe type.
objectvalueThe value.

CultureInsensitiveProperty(string, Type)

Initializes a new instance of the CultureInsensitiveProperty class.

Declaration

public CultureInsensitiveProperty(string name, Type type)

Parameters

TypeNameDescription
stringnameThe name.
TypetypeThe type.

Properties

IsDirty

Gets a value indicating whether is dirty or not.

Declaration

public override bool IsDirty { get; }

Property Value

TypeDescription
bool

Overrides

MemberBase.IsDirty

Methods

GetTypeName()

Gets the type name of the subtype.

Declaration

protected override string GetTypeName()

Returns

TypeDescription
stringName of the subtype.

Overrides

PropertyBase.GetTypeName()

GetValue()

Gets the value of the property.

Declaration

public object GetValue()

Returns

TypeDescription
objectThe value.

GetValue()

Gets the value of the property.

Declaration

public T GetValue<T>()

Returns

TypeDescription
TThe value.

Type Parameters

NameDescription
TType of the value (preferable nullable).

MarkClean()

Marks as clean.

Declaration

public override void MarkClean()

Overrides

MemberBase.MarkClean()

SetValue(object)

Sets the value of the property.

Declaration

public void SetValue(object value)

Parameters

TypeNameDescription
objectvalueThe value.

StartTracking()

Starts tracking.

Declaration

public override void StartTracking()

Overrides

MemberBase.StartTracking()

Implements

ICultureInsensitiveProperty

IProperty

IMember

IDirtyTracking

If you have suggestions for improving this article, let us know!