public static IniValue FromData(string key, string value) { var ret = new IniValue(); ret._key = key; ret._value = value; ret.FormatDefault(); return(ret); }
public IniValue CreateNew(string key, string value) { var ret = new IniValue(); ret._key = key; ret._value = value; if (IniSettings.PreserveFormatting) { ret.formatting = formatting; if (IniSettings.AllowInlineComments) { ret._inlineCommentChar = _inlineCommentChar; } ret.Format(); } else { ret.FormatDefault(); } return(ret); }
public static IniValue FromData(string key, string value) { var ret = new IniValue(); ret._key = key; ret._value = value; ret.FormatDefault(); return ret; }
public IniValue CreateNew(string key, string value) { var ret = new IniValue(); ret._key = key; ret._value = value; if (IniSettings.PreserveFormatting) { ret.formatting = formatting; if (IniSettings.AllowInlineComments) ret._inlineCommentChar = _inlineCommentChar; ret.Format(); } else ret.FormatDefault(); return ret; }