Skip to main content
Version: 3.1.0

Class KeyValueContainer

KeyValue Element Container

Assembly: Netly.dll
View Source
Declaration
public class KeyValueContainer

Properties

AllKeyValue

Return all KV elements

View Source
Declaration
public KeyValue<string, string>[] AllKeyValue { get; }

Count

Return the size (count) of all KV elements

View Source
Declaration
public int Count { get; }

Length

Return the size (length) of all KV elements

View Source
Declaration
public int Length { get; }

Methods

GetLength()

Return the amount of all KV element

View Source
Declaration
public int GetLength()
Returns

System.Int32

GetAllKeyValue()

Return all KV element

View Source
Declaration
public KeyValue<string, string>[] GetAllKeyValue()
Returns

Netly.Core.KeyValue<System.String,System.String>[]

Add(string, string)

Add a KV element in container

View Source
Declaration
public void Add(string name, string value)
Parameters
TypeNameDescription
System.Stringnamename (Key)
System.Stringvaluedata (Value)

Remove(string)

Remove a KV element if exist

View Source
Declaration
public void Remove(string name)
Parameters
TypeNameDescription
System.Stringnamename (Key)

Get(string)

Return value (data) of some KV element.

View Source
Declaration
public string Get(string name)
Returns

System.String: It return value (data) of a name (key).

Warning it return Empty (null) when data not found or KV element value (data) is Empty (White Space)

Parameters
TypeNameDescription
System.Stringnamename (Key)