Can any one help me to convert this delphi code to C#.
class function TShrinkConfig.MyVersion: WORD;
var
ini: TIniFile;
begin
ini := TIniFile.Create(gsIniFile);
Result := ini.ReadInteger(
SHRINK_INI_SETUP_SECTION,
SHRINK_INI_MYVERSION,
SHRINK_INI_VERSION_1);
ini.Free;
end;
if (not ini.ValueExists(SHRINK_INI_VERSIONS_SECTION, IntToStr(version))) then
....
I searched online that TiniFile corresponds to FileStream in C#.
But i am not able to understand and convert it into C#.
Help would be really appreciated.