Beispiel #1
0
        public void SetArg(int i, string v)
        {
            switch (i)
            {
            case 0: Arg0.Set(v); break;

            case 1: Arg1.Set(v); break;

            case 2: Arg2.Set(v); break;

            case 3: Arg3.Set(v); break;

            default: Arguments[i - InlineArgsCount].Set(v); break;
            }
            //UpdateSignature(i);
        }
Beispiel #2
0
 public void Set(DObject obj, DObject value)
 {
     if (_setter == Own_Data_Set) //This is the most common case, and we can make it faster this way
     {
         obj.Fields[Index].Set(value);
     }
     else
     {
         var tmp = new DValue();
         tmp.Set(value);
         Set(obj, ref tmp);
     }
 }
Beispiel #3
0
 public void Set(DObject obj, string value)
 {
     //if (IsDataDescriptor && !IsInherited)
     if (_setter == Own_Data_Set) //This is the most common case, and we can make it faster this way
     {
         obj.Fields[Index].Set(value);
     }
     else
     {
         var tmp = new DValue();
         tmp.Set(value);
         Set(obj, ref tmp);
     }
 }
Beispiel #4
0
 public DObject Set(DObject This, DObject v)
 {
     if (OnSetDObject == null)
     {
         var tmp = new DValue();
         tmp.Set(v);
         return(Set(This, ref tmp));
     }
     else
     {
         OnSetDObject(This, v);
         return(this);
     }
 }
Beispiel #5
0
 public DObject Set(DObject This, bool v)
 {
     if (OnSetBoolean == null)
     {
         var tmp = new DValue();
         tmp.Set(v);
         return(Set(This, ref tmp));
     }
     else
     {
         OnSetBoolean(This, v);
         return(this);
     }
 }
Beispiel #6
0
 public static DValue Create(DObject v)
 {
     var dv = new DValue(); dv.Set(v); return(dv);
 }
Beispiel #7
0
 public static DValue Create(double v)
 {
     var dv = new DValue(); dv.Set(v); return(dv);
 }
Beispiel #8
0
 public static DValue Create(string v)
 {
     var dv = new DValue(); dv.Set(v); return(dv);
 }