I have an object to manage ini files.
I concept this object to bee used in two ways: static and non-static. So I can call IniFile.Read
directly when I just need a value or I can instantiate IniFile
Object and do some operations. All non-static functions call static equivalent one, myIniFile.Read(sectionName, value, defaultValue)
calls IniFile.Read(iniPath, sectionName, value, defaultValue)
.
Read()
function has default value for the last parameter.
My problem is when I call IniFile.Read()
function, compiler doesn't know if I call the static function or the other one. Is there a way to resolve this problem ?
public static string ReadValue(string filePath, string section, string key, string defaultValue="")
public string ReadValue(string Section, string Key, string defaultValue="")