|
My Project
|
Public Member Functions | |
| KeyDataCollection () | |
| Initializes a new instance of the KeyDataCollection class. | |
| KeyDataCollection (KeyDataCollection ori) | |
| Initializes a new instance of the KeyDataCollection class from a previous instance of KeyDataCollection. | |
| bool | AddKey (string keyName) |
| Adds a new key with the specified name and empty value and comments. | |
| bool | AddKey (string keyName, KeyData keyData) |
| Adds a new key with the specified name and value and comments. | |
| bool | AddKey (string keyName, string keyValue) |
| Adds a new key with the specified name and value and comments. | |
| void | ClearComments () |
| Clears all comments of this section. | |
| bool | ContainsKey (string keyName) |
| Gets if a specifyed key name exists in the collection. | |
| KeyData | GetKeyData (string keyName) |
| Retrieves the data for a specified key given its name. | |
| void | Merge (KeyDataCollection keyDataToMerge) |
| void | RemoveAllKeys () |
| Deletes all keys in this collection. | |
| bool | RemoveKey (string keyName) |
| Deletes a previously existing key, including its associated data. | |
| void | SetKeyData (KeyData data) |
| Sets the key data associated to a specified key. | |
| IEnumerator< KeyData > | GetEnumerator () |
| Allows iteration througt the collection. | |
| object | Clone () |
| Creates a new object that is a copy of the current instance. | |
Properties | |
| string | this[string keyName] [get, set] |
| int | Count [get] |
| Return the number of keys in the collection. | |
Represents a collection of Keydata.
|
inline |
Initializes a new instance of the KeyDataCollection class from a previous instance of KeyDataCollection.
Data is deeply copied
| ori | The instance of the KeyDataCollection class used to create the new instance. |
|
inline |
Adds a new key with the specified name and empty value and comments.
A valid key name is a string with NO blank spaces.
| keyName | New key to be added. |
true if a new empty key was added false otherwise. | ArgumentException | If the key name is not valid. |
|
inline |
Adds a new key with the specified name and value and comments.
A valid key name is a string with NO blank spaces.
| keyName | New key to be added. |
| keyData | KeyData instance. |
true if a new empty key was added false otherwise. | ArgumentException | If the key name is not valid. |
|
inline |
Adds a new key with the specified name and value and comments.
A valid key name is a string with NO blank spaces.
| keyName | New key to be added. |
| keyValue | Value associated to the kyy. |
true if a new empty key was added false otherwise. | ArgumentException | If the key name is not valid. |
|
inline |
Creates a new object that is a copy of the current instance.
|
inline |
Gets if a specifyed key name exists in the collection.
| keyName | Key name to search |
true if a key with the specified name exists in the collectoin false otherwise
|
inline |
Allows iteration througt the collection.
|
inline |
Retrieves the data for a specified key given its name.
| keyName | Name of the key to retrieve. |
null if the key wasn't found.
|
inline |
Deletes a previously existing key, including its associated data.
| keyName | The key to be removed. |
true if a key with the specified name was removed false otherwise.
|
inline |
Sets the key data associated to a specified key.
| data | The new KeyData for the key. |
|
get |
Return the number of keys in the collection.
An integer with the number of keys in the collection.
|
getset |
Gets or sets the value of a concrete key.
If we try to assign the value of a key which doesn't exists, a new key is added with the name and the value is assigned to it.
| keyName | Name of the key |