示例#1
0
        public static TomlString AddValue(this TomlTable table, string key, string value)
        {
            var s = table.CreateAttachedValue(value);

            table.AddRow(new TomlKey(key), table.CreateAttachedValue(value));
            return(s);
        }
示例#2
0
        public static TomlInt AddValue(this TomlTable table, string key, long value)
        {
            var i = table.CreateAttachedValue(value);

            table.AddRow(new TomlKey(key), i);
            return(i);
        }
示例#3
0
        public static TomlBool AddValue(this TomlTable table, string key, bool value)
        {
            var b = table.CreateAttachedValue(value);

            table.AddRow(new TomlKey(key), b);
            return(b);
        }
示例#4
0
        public static TomlTimeSpan AddValue(this TomlTable table, string key, TimeSpan timeSpan)
        {
            var ts = table.CreateAttachedValue(timeSpan);

            table.AddRow(new TomlKey(key), ts);
            return(ts);
        }
示例#5
0
        public static TomlDateTime AddValue(this TomlTable table, string key, DateTimeOffset dateTime)
        {
            var dt = table.CreateAttachedValue(dateTime);

            table.AddRow(new TomlKey(key), dt);
            return(dt);
        }
示例#6
0
        public static TomlFloat AddValue(this TomlTable table, string key, double value)
        {
            var f = table.CreateAttachedValue(value);

            table.AddRow(new TomlKey(key), f);
            return(f);
        }