Exemple #1
0
 /// <summary>
 /// Return the .NET type name for this Fantom type.
 /// </summary>
 public static string toDotnetTypeName(Fan.Sys.Type type)
 {
     return toDotnetTypeName(type.pod().name(), type.name(), type.isNullable());
 }
Exemple #2
0
 /// <summary>
 /// Return if the Fantom Type is represented as a .NET class
 /// such as sys::Int as Fan.Sys.Long.
 /// </summary>
 public static bool isDotnetRepresentation(Fan.Sys.Type t)
 {
     if (t.pod() != Fan.Sys.Sys.m_sysPod) return false;
       return t == Fan.Sys.Sys.ObjType   ||
      t == Fan.Sys.Sys.BoolType  ||
      t == Fan.Sys.Sys.StrType   ||
      t == Fan.Sys.Sys.IntType   ||
      t == Fan.Sys.Sys.FloatType ||
      t == Fan.Sys.Sys.NumType   ||
      t == Fan.Sys.Sys.DecimalType;
 }