public override bool Equals(object obj) { if (obj is HexUTF8String) { HexUTF8String val = (HexUTF8String)obj; return(val.Value == Value); } return(false); }
public static object CreateFromHex <T>(string hex) { if (typeof(BigInteger) == typeof(T)) { return(new HexBigInteger(hex)); } if (typeof(string) == typeof(T)) { return(HexUTF8String.CreateFromHex(hex)); } throw new NotImplementedException(); }
public IEnumerator SendRequest(Nethereum.Hex.HexTypes.HexUTF8String valueToConvert) { var request = _web3Sha3.BuildRequest(valueToConvert); yield return(SendRequest(request)); }