Interface IDictionaryStringString
Simple equivalent of Dictionary of string key and string value
Namespace: SprutCAMTech.CAMAPI.Generic.Dictionary
Assembly: SprutCAMTech.CAMAPI.Generic.Dictionary.dll
Syntax
[Guid("FA315A70-1456-4255-9816-6800307C9DAD")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IDictionaryStringString
Methods
Add(string, string)
Add new element
Declaration
void Add(string key, string value)
Parameters
Type | Name | Description |
---|---|---|
string | key | |
string | value |
Clear()
Clear all pairs
Declaration
void Clear()
Contains(string)
Checks if dictionary contains key
Declaration
bool Contains(string key)
Parameters
Type | Name | Description |
---|---|---|
string | key |
Returns
Type | Description |
---|---|
bool |
Count()
Get number of all pairs
Declaration
int Count()
Returns
Type | Description |
---|---|
int |
Get(string)
Get value for key
Declaration
string Get(string key)
Parameters
Type | Name | Description |
---|---|---|
string | key |
Returns
Type | Description |
---|---|
string |
GetKeys()
Get all keys
Declaration
IListString GetKeys()
Returns
Type | Description |
---|---|
IListString |
GetValues()
Get all values
Declaration
IListString GetValues()
Returns
Type | Description |
---|---|
IListString |
Remove(string)
Remove existing element. If not found, do nothing
Declaration
void Remove(string key)
Parameters
Type | Name | Description |
---|---|---|
string | key |