Class KeyValuePair
Object representing key value pair structure.
Inheritance
System.Object
KeyValuePair
Namespace:
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
public class KeyValuePair : ICompactSerializable
KeyValuePair()
Declaration
public KeyValuePair()
KeyValuePair(Object, Object)
Initialize a new instance of key-value pair class.
Declaration
public KeyValuePair(object key, object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | key | key |
System.Object | value | value |
Key
Sets/returns key from intermediate Key-Value pair.
Declaration
public object Key { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
Value
Sets/returns value from intermediate Key-Value pair.
Declaration
public object Value { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
Deserialize(CompactReader)
Compact Deseralize key-value pair
Declaration
public void Deserialize(CompactReader reader)
Parameters
Type | Name | Description |
---|---|---|
CompactReader | reader | Compact deseralization instance |
Implements
Serialize(CompactWriter)
Compact Seralize key-value pair.
Declaration
public void Serialize(CompactWriter writer)
Parameters
Type | Name | Description |
---|---|---|
CompactWriter | writer | Compact seralization instance |