ToInt() public method

public ToInt ( ) : int
return int
Beispiel #1
0
        public void Set(VBox value)
        {
            switch (this.typeStack)
            {
            case NumberOnStack.Int32:
            {
                bool flag = value.typeStack == this.typeStack;
                if (flag)
                {
                    this.v32 = value.v32;
                }
                else
                {
                    this.v32 = value.ToInt();
                }
                break;
            }

            case NumberOnStack.Int64:
            {
                bool flag2 = value.typeStack == this.typeStack;
                if (flag2)
                {
                    this.v64 = value.v64;
                }
                else
                {
                    this.v64 = value.ToInt64();
                }
                break;
            }

            case NumberOnStack.Double:
            {
                bool flag3 = value.typeStack == this.typeStack;
                if (flag3)
                {
                    this.vDF = value.vDF;
                }
                else
                {
                    this.vDF = value.ToDouble();
                }
                break;
            }
            }
        }
Beispiel #2
0
        public void Set(VBox value)
        {
            switch (typeStack)
            {
            case NumberOnStack.Int32:
                if (value.typeStack == typeStack)
                {
                    v32 = value.v32;
                }
                else
                {
                    v32 = value.ToInt();
                }
                break;

            case NumberOnStack.Int64:
                if (value.typeStack == typeStack)
                {
                    v64 = value.v64;
                }
                else
                {
                    v64 = value.ToInt64();
                }
                break;

            case NumberOnStack.Double:
                if (value.typeStack == typeStack)
                {
                    vDF = value.vDF;
                }
                else
                {
                    vDF = value.ToDouble();
                }
                break;
            }
        }
Beispiel #3
0
 public void Set(VBox value)
 {
     switch (typeStack)
     {
         case NumberOnStack.Int32:
             if (value.typeStack == typeStack)
                 v32 = value.v32;
             else
                 v32 = value.ToInt();
             break;
         case NumberOnStack.Int64:
             if (value.typeStack == typeStack)
                 v64 = value.v64;
             else
                 v64 = value.ToInt64();
             break;
         case NumberOnStack.Double:
             if (value.typeStack == typeStack)
                 vDF = value.vDF;
             else
                 vDF = value.ToDouble();
             break;
     }
 }