expose tonumber of ResourceQuantity (#639)

This commit is contained in:
Boshi Lian
2021-05-26 07:15:22 -07:00
committed by GitHub
parent ac0f43b576
commit d2fa4dee25

View File

@@ -377,5 +377,40 @@ namespace k8s.Models
return lastv;
}
}
public int ToInt32()
{
return _unitlessValue.ToInt32();
}
public long ToInt64()
{
return _unitlessValue.ToInt64();
}
public uint ToUInt32()
{
return _unitlessValue.ToUInt32();
}
public ulong ToUInt64()
{
return _unitlessValue.ToUInt64();
}
public BigInteger ToBigInteger()
{
return _unitlessValue.ToBigInteger();
}
public decimal ToDecimal()
{
return _unitlessValue.ToDecimal();
}
public double ToDouble()
{
return _unitlessValue.ToDouble();
}
}
}