Beispiel #1
0
 public JMbr(string name, bool v)
 {
     this.name = name;
     type      = v ? JType.True : JType.False;
     refv      = null;
     numv      = default(JNumber);
 }
Beispiel #2
0
 public JMbr(string name, JNumber v)
 {
     this.name = name;
     type      = JType.Number;
     refv      = null;
     numv      = v;
 }
Beispiel #3
0
 public JMbr(string name, string v)
 {
     this.name = name;
     type      = JType.String;
     refv      = v;
     numv      = default(JNumber);
 }
Beispiel #4
0
 public JMbr(string name, byte[] v)
 {
     this.name = name;
     type      = JType.Bytes;
     refv      = v;
     numv      = default(JNumber);
 }
Beispiel #5
0
 public JMbr(string name, JArr v)
 {
     this.name = name;
     type      = JType.Array;
     refv      = v;
     numv      = default(JNumber);
 }
Beispiel #6
0
 public JMbr(string name, JObj v)
 {
     this.name = name;
     type      = JType.Object;
     refv      = v;
     numv      = default(JNumber);
 }
Beispiel #7
0
 public JMbr(string name)
 {
     this.name = name;
     type      = JType.Null;
     refv      = null;
     numv      = default(JNumber);
 }
Beispiel #8
0
 public void Add(JNumber v)
 {
     Add(v.Long);
     if (v.Pt)
     {
         Add('.');
         Add(v.fract);
     }
 }
Beispiel #9
0
 public XmlContent Put(string name, JNumber v)
 {
     Add(' ');
     Add(name);
     Add('=');
     Add('"');
     Add(v);
     Add('"');
     return(this);
 }
Beispiel #10
0
 public FormMpContent Put(string name, JNumber v)
 {
     Part(name);
     Add(v.bigint);
     if (v.Pt)
     {
         Add('.');
         Add(v.fract);
     }
     return(this);
 }
Beispiel #11
0
 public DbSql Put(string name, JNumber v)
 {
     if (name != null)
     {
         Build(name);
     }
     else
     {
         Add(v);
     }
     return(this);
 }
Beispiel #12
0
 public DbParameters Put(string name, JNumber v)
 {
     if (name == null)
     {
         name = Defaults[position++];
     }
     coll.Add(new NpgsqlParameter(name, NpgsqlDbType.Numeric)
     {
         Value = v.Decimal
     });
     return(this);
 }
Beispiel #13
0
        public JsonContent Put(string name, JNumber v)
        {
            if (counts[level]++ > 0)
            {
                Add(',');
            }
            if (name != null)
            {
                Add('"');
                Add(name);
                Add('"');
                Add(':');
            }

            Add(v.bigint);
            if (v.Pt)
            {
                Add('.');
                Add(v.fract);
            }
            return(this);
        }
Beispiel #14
0
 public FormContent Put(string name, JNumber v)
 {
     return(this);
 }
Beispiel #15
0
 public DbParameters Set(JNumber v)
 {
     return(Put(null, v));
 }
Beispiel #16
0
 internal void Add(string name, JNumber v)
 {
     Add(new JMbr(name, v));
 }