src/sys/dotnet/fanx/util/FanUtil.cs
/// <summary>
/// Return the .NET type name for this Fantom pod and type.
/// </summary>
Return the .NET type name for this Fantom pod and type.
Return the . NET type name for this Fantom pod and type .
public static string toDotnetTypeName(string podName, string typeName, bool nullable)
    {
      if (podName == "sys")
      {
        switch (typeName[0])
        {
          case 'B':
            if (typeName == "Bool") return nullable ? "Fan.Sys.Boolean" : "System.Boolean";
            break;
          case 'D':
            if (typeName == "Decimal") return "Fan.Sys.BigDecimal";
            break;
          case 'F':
            if (typeName == "Float") return nullable ? "Fan.Sys.Double" : "System.Double";
            break;
          case 'I':
            if (typeName == "Int") return nullable ? "Fan.Sys.Long" : "System.Int64";
            break;
          case 'N':
            if (typeName == "Num") return "Fan.Sys.Number";
            break;
          case 'O':
            if (typeName == "Obj") return "System.Object";
            break;
          case 'S':
            if (typeName == "Str") return "System.String";
            break;
        }
      }
      return "Fan." + FanUtil.upper(podName, false) + "." + typeName;
    }
public static string toDotnetTypeName ( string podName , string typeName , bool nullable ) { if ( podName == " " ) { switch ( typeName [ 0 ] ) { case ' ' : if ( typeName == " " ) return nullable ? " " : " " ; break ; case ' ' : if ( typeName == " " ) return " " ; break ; case ' ' : if ( typeName == " " ) return nullable ? " " : " " ; break ; case ' ' : if ( typeName == " " ) return nullable ? " " : " " ; break ; case ' ' : if ( typeName == " " ) return " " ; break ; case ' ' : if ( typeName == " " ) return " " ; break ; case ' ' : if ( typeName == " " ) return " " ; break ; } } return " " + FanUtil . upper ( podName , false ) + " " + typeName ; }
Return the .NET type name for this Fantom pod and type.
Return the . NET type name for this Fantom pod and type .
//case 'V': //  if (typeName.equals("Void")) return "System.Void"; //  break;
podName
string
typeName
string
nullable
bool