Class PropertyFactory

A property factory.

Inheritance
object
PropertyFactory
Namespace: StylelabsStylelabs.MSdkStylelabs.M.Sdk.ModelsFactories
Assembly: Stylelabs.M.Sdk.dll
Syntax
RequestResponse

public static class PropertyFactory

Methods

CreateCultureInSensitiveProperty(IPropertyDefinition)

Declaration
RequestResponse

public static ICultureInsensitiveProperty CreateCultureInSensitiveProperty(IPropertyDefinition definition)
Parameters
TypeNameDescription
IPropertyDefinitiondefinition

Property definition.

Returns
TypeDescription
ICultureInsensitiveProperty

A new property.

CreateCultureSensitiveProperty(IPropertyDefinition, HashSet<CultureInfo>)

Creates a new ICultureSensitiveProperty.

Declaration
RequestResponse

public static ICultureSensitiveProperty CreateCultureSensitiveProperty(IPropertyDefinition definition, HashSet<CultureInfo> cultures)
Parameters
TypeNameDescription
IPropertyDefinitiondefinition

Property definition.

HashSet<>CultureInfocultures

The cultures to initialize a ICultureSensitiveProperty with.

Returns
TypeDescription
ICultureSensitiveProperty

A new property.

CreateProperties(IEnumerable<IPropertyDefinition>, HashSet<CultureInfo>)

Creates a new collection of properties.

Declaration
RequestResponse

public static IList<IProperty> CreateProperties(IEnumerable<IPropertyDefinition> definitions, HashSet<CultureInfo> cultures = null)
Parameters
TypeNameDescription
IEnumerable<>IPropertyDefinitiondefinitions

The definitions.

HashSet<>CultureInfocultures

The cultures to initialize a ICultureSensitiveProperty with.

Returns
TypeDescription
IList<>IProperty

A new property collection.

Do you have some feedback for us?

If you have suggestions for improving this article,