Ejemplo n.º 1
0
 public static bool IsAddress(this TypeDescription typeDescription)
 {
     return(!typeDescription.IsDynamicArray() && !typeDescription.IsStaticArray() &&
            (
                typeDescription.TypeString.Equals("address", StringComparison.CurrentCulture) ||
                typeDescription.TypeString.Equals("address payable", StringComparison.CurrentCulture)));
 }
Ejemplo n.º 2
0
 public static bool IsUint(this TypeDescription typeDescription)
 {
     return(!typeDescription.IsDynamicArray() && !typeDescription.IsStaticArray() &&
            typeDescription.TypeString.StartsWith("uint", StringComparison.CurrentCulture));
 }
Ejemplo n.º 3
0
 public static bool IsElementaryType(this TypeDescription typeDescription)
 {
     return(typeDescription.IsDynamicArray() || typeDescription.IsStaticArray() ||
            typeDescription.IsInt() || typeDescription.IsUint() || typeDescription.IsBool() || typeDescription.IsString() || typeDescription.IsBytes());
 }