public static TryParseUnsigned ( string s, ulong min, ulong max, ulong &value ) : bool | ||
s | string | |
min | ulong | |
max | ulong | |
value | ulong | |
Результат | bool |
static byte[] TryParseUInt64(string text, bool isBigEndian) { if (!NumberParser.TryParseUnsigned(text, ulong.MinValue, ulong.MaxValue, out ulong value)) { return(null); } return(GetBytes((ulong)value, isBigEndian)); }
static byte[] TryParseUInt32(string text, bool isBigEndian) { ulong value; if (!NumberParser.TryParseUnsigned(text, uint.MinValue, uint.MaxValue, out value)) { return(null); } return(GetBytes((uint)value, isBigEndian)); }
static byte[] TryParseByte(string text) { if (!NumberParser.TryParseUnsigned(text, byte.MinValue, byte.MaxValue, out ulong value)) { return(null); } return(new byte[1] { (byte)value }); }