Example #1
0
        public dshort_v Clone()
        {
            dshort_v o_v = new dshort_v();

            o_v.v = this.v_;
            o_v.defined = this.defined;
            return o_v;
        }
Example #2
0
        public static dshort_v set_dshort(object p)
        {
            dshort_v x = null;
            if (p == null) return null;
            if (p is short)
            {
                x = new dshort_v((short)p);
            }
            else if (p.GetType() == typeof(ushort))
            {
                x = new dshort_v((ushort)p);
            }
            else if (!(p is System.DBNull))
            {
                tf.ShowTypeError(p.GetType().ToString(), x.GetType().ToString());
            }

            return x;
        }
Example #3
0
 public static dshort_v Copy(dshort_v o_v)
 {
     if (o_v != null)
     {
         return o_v.Clone();
     }
     else
     {
         return null;
     }
 }