DictUtils Class

Static/Shared class for maintaining a configuration file Consists of a text file with the following format: key,value

Definition

Namespace: MbcsUtils
Assembly: MbcsUtils (in MbcsUtils.dll) Version: 1.0.0.0 (1.0.0.0)
VB
Public Class DictUtils

Dim instance As DictUtils
Inheritance
Object    DictUtils

Constructors

DictUtils Empty Constructor
DictUtils(String) Constructor
DictUtils(String, DictionaryString, String) Full constructor with configuration filename and dictionay name

Properties

Configs The Dictionary in which to store the configurations
Count Count of dictionary items
fileName The full path (including file name) to the configuration file
GetDict Get current dictionary

Methods

addItem Add a key/value pair
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
getConfigs Returns the entire configuration file
GetHashCodeServes as the default hash function.
(Inherited from Object)
getItem(String, Object) Retrieve an item by key
getItem(String, String) Retrieve an item by key
getItem(String, CheckBox) Retrieve a checkbox item by key
getItemsByPattern Gets all items that match specified pattern
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
removeItem Delete the specified key
removeItemStartsWith Removes items with the specified key pattern
setConfigs Writes dictionary to configuration file
setItem(String, Object) Add or replace a key/(object)value pair
setItem(String, String) Add or replace a key/(string)value pair
setItem(String, CheckBox) Add or replace a key/value pair
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also