SimpleIniFile Class

Hold ini file data.

Definition

Namespace: Karamba.Utilities
Assembly: KarambaCommon (in KarambaCommon.dll) Version: 3.0.8.0+eb23a7103f0eca0b6d808121e15fec6899194e15
C#
public class SimpleIniFile : KeyedCollection<string, SimpleIniFileEntry>
Inheritance
Object    CollectionSimpleIniFileEntry    KeyedCollectionString, SimpleIniFileEntry    SimpleIniFile
Derived

Constructors

SimpleIniFile Initializes a new instance of the SimpleIniFile class. Start with an empty collection.
SimpleIniFile(IEnumerableSimpleIniFileEntry) Initializes a new instance of the SimpleIniFile class. Use data from an list.
SimpleIniFile(SimpleIniFile) Initializes a new instance of the SimpleIniFile class. copy constructor.
SimpleIniFile(String, String) Initializes a new instance of the SimpleIniFile class. Construct per data from files.
SimpleIniFile(PathUtilBaseBy, String, String) Initializes a new instance of the SimpleIniFile class. Construct per data from files.

Properties

Comparer Gets the generic equality comparer that is used to determine equality of keys in the collection.
(Inherited from KeyedCollectionString, SimpleIniFileEntry)
Count Gets the number of elements actually contained in the CollectionT.
(Inherited from CollectionSimpleIniFileEntry)
Dictionary Gets the lookup dictionary of the KeyedCollectionTKey, TItem.
(Inherited from KeyedCollectionString, SimpleIniFileEntry)
ItemInt32 Gets or sets the element at the specified index.
(Inherited from CollectionSimpleIniFileEntry)
ItemString Don't throw exception when value is not set in the ini file, just return null instead.
Items Gets a IListT wrapper around the CollectionT.
(Inherited from CollectionSimpleIniFileEntry)
OccurredErrors  

Methods

Add Adds an object to the end of the CollectionT.
(Inherited from CollectionSimpleIniFileEntry)
AddEntries add entries from a (later) file.
AsText Return ini file data as reparseable text. Normally only changes and stuff from the top returned.
ChangeItemKey Changes the key associated with the specified element in the lookup dictionary.
(Inherited from KeyedCollectionString, SimpleIniFileEntry)
Clear Removes all elements from the CollectionT.
(Inherited from CollectionSimpleIniFileEntry)
ClearItems Removes all elements from the KeyedCollectionTKey, TItem.
(Inherited from KeyedCollectionString, SimpleIniFileEntry)
Color Shortcut for color values.
Contains(T) Determines whether an element is in the CollectionT.
(Inherited from CollectionSimpleIniFileEntry)
Contains(TKey) Determines whether the collection contains an element with the specified key.
(Inherited from KeyedCollectionString, SimpleIniFileEntry)
CopyTo Copies the entire CollectionT to a compatible one-dimensional Array, starting at the specified index of the target array.
(Inherited from CollectionSimpleIniFileEntry)
DeleteByKey Delete items with name.
Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
FromUserCfg Return items form user config.
GetEnumerator Returns an enumerator that iterates through the CollectionT.
(Inherited from CollectionSimpleIniFileEntry)
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetKeyForItem Used by underlying KeyedCollection to extract key.
(Overrides KeyedCollectionTKey, TItemGetKeyForItem(TItem))
GetType Gets the Type of the current instance.
(Inherited from Object)
GetValueFromIni Get Value from the ini files, ignore super classes.
IncorporateChangesFrom Take over changes from another read.
IndexOf Searches for the specified object and returns the zero-based index of the first occurrence within the entire CollectionT.
(Inherited from CollectionSimpleIniFileEntry)
Insert Inserts an element into the CollectionT at the specified index.
(Inherited from CollectionSimpleIniFileEntry)
InsertItem Inserts an element into the KeyedCollectionTKey, TItem at the specified index.
(Inherited from KeyedCollectionString, SimpleIniFileEntry)
ItemsAsText Return ini file data as reparseable text. Normally only changes and stuff from the top returned. Used by non-static .AsText() and also for interpreting doc settings.
MarkAsChangedBasedOn For use with editors. Write the actual state into a temporary file, open editor with it, wait, parse, and then update changed state based on the original state. Then just write the delta to the user config.
MemberwiseClone Creates a shallow copy of the current Object.
(Inherited from Object)
NxVyzMxyzColors Read separated color values in on go.
NxVyzMxyzColorsPerAxis Like NxVyzMxyzColors.
Parse parse text (e.g. file content) into a list of entries.
PrependEntries Like AddEntries(), but new entries are stronger.
PureComments Returns a list of standalone comments which are spaced away from config values.
Read Read ini files.
ReadFromFile Read ini content from file.
ReadFromText Read ini content from string.
ReadTypeStrs  
Remove(T) Removes the first occurrence of a specific object from the CollectionT.
(Inherited from CollectionSimpleIniFileEntry)
Remove(TKey) Removes the element with the specified key from the KeyedCollectionTKey, TItem.
(Inherited from KeyedCollectionString, SimpleIniFileEntry)
RemoveAt Removes the element at the specified index of the CollectionT.
(Inherited from CollectionSimpleIniFileEntry)
RemoveItem Removes the element at the specified index of the KeyedCollectionTKey, TItem.
(Inherited from KeyedCollectionString, SimpleIniFileEntry)
ReSet Reset to the original values which has be read in, and dismiss all later changes.
Save Stores the changes in the user config file.
SaveForEditing Save all not only changes into file.
SetItem Replaces the item at the specified index with the specified item.
(Inherited from KeyedCollectionString, SimpleIniFileEntry)
SetValue(SimpleIniFileEntry, Object, Boolean)  
SetValue(String, Object, Boolean)  
ToString
(Overrides ObjectToString)

Fields

TopFile First file read, which is used to write changes into.

Extension Methods

ContainerType test if object is (a container like) a list or an array.
(Defined by MiniUtil)

See Also