public override void SetValue(string section, string entry, object value)
{
// If the value is null, remove the entry
if (value == null)
{
RemoveEntry(section, entry);
return;
}
VerifyNotReadOnly();
VerifyName();
VerifyAndAdjustSection(ref section);
VerifyAndAdjustEntry(ref entry);
if (!RaiseChangeEvent(true, ProfileChangeType.SetValue, section, entry, value))
return;
if (WritePrivateProfileString(section, entry, value.ToString(), Name) == 0)
throw new Win32Exception();
RaiseChangeEvent(false, ProfileChangeType.SetValue, section, entry, value);
}