public PyInteger(byte value) { this.Value = value; if (value > sbyte.MaxValue) { this.IntegerType = IntegerTypeEnum.Short; } else { this.IntegerType = IntegerTypeEnum.Byte; } }
public PyInteger(sbyte value) { this.Value = value; this.IntegerType = IntegerTypeEnum.Byte; }
public PyInteger(short value) { this.Value = value; this.IntegerType = IntegerTypeEnum.Short; }
public PyInteger(int value) { this.Value = value; this.IntegerType = IntegerTypeEnum.Int; }
public PyInteger(long value) { this.Value = value; this.IntegerType = IntegerTypeEnum.Long; }
public PyInteger(byte value) : base(PyObjectType.Integer) { this.Value = value; this.IntegerType = IntegerTypeEnum.Byte; }
public PyInteger(short value) : base(PyObjectType.Integer) { this.Value = value; this.IntegerType = IntegerTypeEnum.Short; }
public PyInteger(long value) : base(PyObjectType.Integer) { this.Value = value; this.IntegerType = IntegerTypeEnum.Long; }