LocalizedPropertyTPropertyType Class |
Namespace: WeroSoft.CommonTypes
[SerializableAttribute] public class LocalizedProperty<TPropertyType> : ILocalizedProperty, IDictionary<string, TPropertyType>, ICollection<KeyValuePair<string, TPropertyType>>, IEnumerable<KeyValuePair<string, TPropertyType>>, IEnumerable
The LocalizedPropertyTPropertyType type exposes the following members.
Name | Description | |
---|---|---|
LocalizedPropertyTPropertyType | Initializes a new instance of the LocalizedPropertyTPropertyType class |
Name | Description | |
---|---|---|
Count | Gets the number of elements contained in the ICollectionT. | |
GetDefaultLanguageFunction |
Gets or sets a function to get a fall-back language.
| |
IsReadOnly | Gets a value indicating whether the ICollectionT is read-only. | |
Item | Gets or sets the element with the specified key. | |
Keys | Gets an ICollectionT containing the keys of the IDictionaryTKey, TValue. | |
Value |
Gets or sets the default value.
| |
Values |
Gets or sets the property values.
|
Name | Description | |
---|---|---|
Add(KeyValuePairString, TPropertyType) | Adds an item to the ICollectionT. | |
Add(String, TPropertyType) | Adds an element with the provided key and value to the IDictionaryTKey, TValue. | |
Clear | Removes all items from the ICollectionT. | |
Contains | Determines whether the ICollectionT contains a specific value. | |
ContainsKey | Determines whether the IDictionaryTKey, TValue contains an element with the specified key. | |
CopyTo | ||
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
Get |
Get value from current culture.
| |
Get(CultureInfo) |
Gets a value.
| |
Get(String) |
Gets a value.
| |
GetContainingCultureInfos |
Gets all available culture infos.
| |
GetContainingLanguages |
Get all available languages.
| |
GetContainingValues |
Gets all containing values.
| |
GetEnumerator | Returns an enumerator that iterates through the collection. | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetValue |
Get value from current culture.
| |
GetValue(CultureInfo) |
Get property value in specified culture.
| |
GetValue(String) |
Gets a property value in specified language.
| |
GetValues |
Gets an enumerable of localized property values.
| |
HasContent |
Gets whether at least one value is set.
| |
HasContent(CultureInfo) |
Gets whether the property has a value for cultureInfo.
| |
HasContent(String) |
Gets whether the property has a value for the defined language.
| |
HasNotInvariantContent |
Gets whether any value is set in a language other than the invariant.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Remove(CultureInfo) |
Removes an entry by language.
| |
Remove(KeyValuePairString, TPropertyType) | Removes the first occurrence of a specific object from the ICollectionT. | |
Remove(String) |
Removes an entry by language.
| |
RemoveAllExceptCurrentCulture |
Remove all values excepting that from current culture.
| |
Set(TPropertyType) |
Sets the value in current language.
| |
Set(Object) |
Sets the content of the localized property by the given thread neutral culture language.
| |
Set(CultureInfo, TPropertyType) |
Add or updates an value.
| |
Set(CultureInfo, Object) |
Add or updates an value.
| |
Set(String, TPropertyType) |
Add or updates an value.
| |
Set(String, Object) |
Add or updates an value.
| |
Set(Type, String, String) |
Adds a value from resources.
| |
Sort |
Sorts the values of localized property.
| |
Sort(IComparerTPropertyType) |
Sorts the values of localized property.
| |
Sort(String) |
Sorts the values in order of given language code.
| |
ToString | Returns a string that represents the current object. (Overrides ObjectToString.) | |
TryGetValue | Gets the value associated with the specified key. |
Name | Description | |
---|---|---|
Clone(CloneWorkingMode, IEnumerableType) | Overloaded.
Clones an object by serialization.
(Defined by RuntimeExtensions.) | |
CloneT(CloneWorkingMode, IEnumerableType) | Overloaded.
Clones an object by serialization.
(Defined by RuntimeExtensions.) | |
Convert | (Defined by DataConverterExtensions.) | |
CreateTraceDataEntry(StringBuilder, SourceLevels, TraceableKind, String) | Overloaded.
Creates a data entry into a string builder according to the giving parameters.
(Defined by TraceExtensions.) | |
CreateTraceDataEntry(SourceLevels, TraceableKind, String, String, Int32) | Overloaded.
Creates a trace entry for a data element.
(Defined by TraceExtensions.) | |
CreateTraceDataEntry(StringBuilder, SourceLevels, TraceableKind, String, String, Int32) | Overloaded.
Creates a trace entry into a string builder.
(Defined by TraceExtensions.) | |
DynamicCast |
Dynamically casts a reference to another type.
(Defined by TypeManagerHelper.) | |
ExtractSystemParametersFromTrigger |
Extracts the system parameters from a collection of trigger parameter and transform them to a dictionary using string keys and string values.
(Defined by TriggerExtensions.) | |
GetFieldValue(String) | Overloaded.
Gets the data object held by a defined field of a particular type.
(Defined by UnitTest.) | |
GetFieldValueT(String) | Overloaded.
Gets the data object held by a defined field of a particular type.
(Defined by UnitTest.) | |
GetPropertyValue(String) | Overloaded.
Gets the data object held by a defined property of a particular type.
(Defined by UnitTest.) | |
GetPropertyValueT(String) | Overloaded.
Gets the data object held by a defined property of a particular type.
(Defined by UnitTest.) | |
Inject(Type, Object) | Overloaded.
Injects all fields or properties which are marked with the defined attribute type name.
(Defined by DataInjection.) | |
Inject(Type, Object, Boolean) | Overloaded.
Injects all fields or properties which are marked with the defined attribute type name.
(Defined by DataInjection.) | |
InjectField |
Injects a value to a property within a data object.
(Defined by DataInjection.) | |
InjectProperty(String, Object) | Overloaded.
Injects a value to a property within a data object.
(Defined by DataInjection.) | |
InjectProperty(String, Type, Object) | Overloaded.
Injects a value to a property within a data object.
(Defined by DataInjection.) | |
Invoke(String, Object) | Overloaded.
Invokes a method on an object by reflection.
(Defined by UnitTest.) | |
InvokeTResult(String, Object) | Overloaded.
Invokes a method on an object by reflection.
(Defined by UnitTest.) | |
IsContentEqualT |
Checks the content of localized property using the "Equals" method.
(Defined by LocalizedPropertyExtensions.) | |
SetFieldValue |
Sets the data object on a defined field of a particular type.
(Defined by UnitTest.) | |
SetPropertyValue |
Sets the data object on a defined property of a particular type.
(Defined by UnitTest.) | |
SetReadOnlyFieldValue |
Sets the data object on a defined field of a particular type.
(Defined by UnitTest.) | |
TryInjectProperty |
Tries to Inject a value to a property within a data object.
(Defined by DataInjection.) |