Ejemplo n.º 1
0
 /// <summary>
 /// Retrieves the first value returned from the contract cast to the
 /// desired native type.
 /// </summary>
 /// <typeparam name="T">
 /// Type of the first argument, must be known to the caller.
 /// </typeparam>
 /// <returns>
 /// The value of the first argument decoded from the ABI results.
 /// </returns>
 public T As <T>()
 {
     return((T)Abi.DecodeArguments(_data, typeof(T))[0]);
 }