Class Dict
Encodes and decodes data in proprietary format (Dict)
Inheritance
System.Object
Dict
Namespace: Netly.Core
Assembly: Netly.Core.dll
Syntax
public class Dict : object
Fields
TypeAccpted
Declaration
public const string TypeAccpted = null
Field Value
| Type | Description |
|---|---|
| System.String |
Properties
Position
Current Index (From Serialization)
Declaration
public int Position { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Methods
Add<T>(T)
Add data
Declaration
public bool Add<T>(T value)
Parameters
| Type | Name | Description |
|---|---|---|
| T | value | Data |
Returns
| Type | Description |
|---|---|
| System.Boolean | Returns true if the data was successfully added |
Type Parameters
| Name | Description |
|---|---|
| T | Type |
Get<T>()
Serialized data collection
Declaration
public T Get<T>()
Returns
| Type | Description |
|---|---|
| T | Returns the collected data or default value if possible |
Type Parameters
| Name | Description |
|---|---|
| T |
GetBytes()
Take the serialized data (Dict format)
Declaration
public byte[] GetBytes()
Returns
| Type | Description |
|---|---|
| System.Byte[] |
SetBytes(Byte[])
Add the data to be deserialized (Dict format)
Declaration
public void SetBytes(byte[] value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte[] | value | Data/Value/Buffer (Dict format) |