CSharpTest.Net
TryUpdate Method
See Also  Send Feedback Download Help File
CSharpTest.Net.BPlusTree Assembly > CSharpTest.Net.Collections Namespace > BPlusTree<TKey,TValue> Class : TryUpdate Method

Glossary Item Box

Updates an element with the provided key to the value if it exists.

Overload List

OverloadDescription
TryUpdate(TKey,TValue)Updates an element with the provided key to the value if it exists.  
TryUpdate(TKey,TValue,TValue)Updates an element with the provided key to the value if it exists.  
TryUpdate(TKey,KeyValueUpdate<TKey,TValue>)Modify the value associated with the result of the provided update method as an atomic operation, Allows for reading/writing a single record within the tree lock. Be cautious about the behavior and performance of the code provided as it can cause a dead-lock to occur. If the method returns an instance who .Equals the original, no update is applied.  

Requirements

Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7

See Also

Generated with Document! X 2011 by Innovasys