Example #1
0
 public PyInteger(byte value)
 {
     this.Value = value;
     if (value > sbyte.MaxValue)
     {
         this.IntegerType = IntegerTypeEnum.Short;
     }
     else
     {
         this.IntegerType = IntegerTypeEnum.Byte;
     }
 }
Example #2
0
 public PyInteger(sbyte value)
 {
     this.Value       = value;
     this.IntegerType = IntegerTypeEnum.Byte;
 }
Example #3
0
 public PyInteger(short value)
 {
     this.Value       = value;
     this.IntegerType = IntegerTypeEnum.Short;
 }
Example #4
0
 public PyInteger(int value)
 {
     this.Value       = value;
     this.IntegerType = IntegerTypeEnum.Int;
 }
Example #5
0
 public PyInteger(long value)
 {
     this.Value       = value;
     this.IntegerType = IntegerTypeEnum.Long;
 }
Example #6
0
 public PyInteger(byte value) : base(PyObjectType.Integer)
 {
     this.Value       = value;
     this.IntegerType = IntegerTypeEnum.Byte;
 }
Example #7
0
 public PyInteger(short value) : base(PyObjectType.Integer)
 {
     this.Value       = value;
     this.IntegerType = IntegerTypeEnum.Short;
 }
Example #8
0
 public PyInteger(long value) : base(PyObjectType.Integer)
 {
     this.Value       = value;
     this.IntegerType = IntegerTypeEnum.Long;
 }