예제 #1
0
        public static IniValue FromData(string key, string value)
        {
            var ret = new IniValue();

            ret._key   = key;
            ret._value = value;
            ret.FormatDefault();
            return(ret);
        }
예제 #2
0
        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);
        }
예제 #3
0
		public static IniValue FromData(string key, string value)
		{
			var ret = new IniValue();
			ret._key = key;
			ret._value = value;
			ret.FormatDefault();
			return ret;
		}
예제 #4
0
		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;
		}