RepositoryInstanceTKey, TValueTryAdd Method |
Tries to add a key/value pair to the repository
Namespace:
Crosser.Common.Utilities.Persistence
Assembly:
Crosser.Common (in Crosser.Common.dll) Version: 0.0.4
Syntax public bool TryAdd(
TKey key,
TValue entity
)
Parameters
- key
- Type: TKey
the generic key to add - entity
- Type: TValue
the generic entity to add
Return Value
Type:
Booleantrue if the operation was successful
See Also