imbPropertyCollectionExtensions Methods |
The imbPropertyCollectionExtensions type exposes the following members.
| Name | Description | |
|---|---|---|
| add |
Safe way to add or update
| |
| addObjectToMultikeys |
Adds the object to multiple keys
| |
| addOrSetFromObject(PropertyCollection, Object, Enum, Boolean) | ||
| addOrSetFromObject(PropertyCollection, Object, Type, Boolean) |
Reads values from source object
| |
| AddRange |
Adds or replaces values of existing with values from data. Overwrite is off if skipExistingKeys is TRUE
| |
| addStringToMultikeys |
Adds the string to multikeys.
| |
| Append |
Appends the specified key and value accordint the specified [!:aceCommonTypes.enums.existingDataMode]. Returns TRUE if newValueCandidate was written as result of the policy specified.
| |
| AppendData |
Combines two PropertyCollections according policy specified
| |
| buildDataTable(PropertyCollection, String) | ||
| buildDataTableT(PropertyCollection) |
Builds DataTable with two columns: Property name and Value
| |
| buildPCE | ||
| buildPropertyCollectionT |
Create or update property collection out of object properties
| |
| buildPropertyCollectionList |
Builds the property collection list from IEnumerable source collection
| |
| containsAllOfKeys |
Determines whether contains all of keys - the specified fields.
| |
| containsAllOfTypes |
Determines whether contains values for each of the specified types.
| |
| containsAnyOfKeys |
Determines whether collection contains at least one key - field.
| |
| containsAnyOfTypes |
Determines whether contains any value being one the specified types.
| |
| containsKey |
Determines whether the specified key contains key - by testing ToString() value it direct test returns false
| |
| copyInto |
Copies all members of one collection to another. Use AppendData for smarter operations.
| |
| get |
Gets value using the specified key or its ToString() form if not found on first try
| |
| getAndRemove | ||
| getAndRemoveProperField |
Finds the first proper value (not empty, not null) in source using given fields and removes original data from the source
| |
| getAndRemoveProperObjectT |
Gets the and remove proper object.
| |
| getAndRemoveProperString |
Gets the and remove proper string.
| |
| getProperBoolean |
Gets the proper boolean: first entry found using fields -- encapsulates getProperField(PropertyCollection, Enum) | |
| getProperEnumT | ||
| getProperField |
Finds the first proper value (not empty, not null) in source using fiven fields | |
| getProperInt32 |
Gets the proper int32.
| |
| getProperObjectT |
Gets the field in proper T type
| |
| getProperString(PropertyCollection, Enum) |
Finds the first proper value (not empty, not null) in source using fiven fields | |
| getProperString(PropertyCollection, String, Enum) |
Prefered overload - finds the first proper value (not empty, not null) in source using fiven fields or returns defaultValue if no field was found.
| |
| getStringLine |
Combines getProperString() results and separator string to create output.
| |
| keyToString | ||
| setFromEnumType |
Populates the collection with empt
| |
| setFromObject |
Sets all where key without prefix matches property name
| |
| setToObject(PropertyCollection, Object, String) |
Sets all where key without prefix matches property name
| |
| setToObject(PropertyCollection, Object, Enum, String) |
Sets to object.
| |
| toPropertyCollection(IDictionary) | ||
| toPropertyCollection(IEnumerableEnum, String) |
From IEnumerable{Enum} makes PropertyCollection where Key is [!:Type.Name] and Value is the Enum or ToString(String) if format is specified
| |
| toString |