src/sys/dotnet/fanx/util/FanUtil.cs
/// <summary>
/// Given a Fantom qname, get the .NET implementation class name:
/// </summary>
Given a Fantom qname, get the .NET implementation class name.
Given a Fantom qname get the . NET implementation class name .
public static string toDotnetImplTypeName(string podName, string typeName)
    {
      if (podName == "sys")
      {
        switch (typeName[0])
        {
          case 'B':
            if (typeName == "Bool") return "Fan.Sys.FanBool";
            break;
          case 'D':
            if (typeName == "Decimal") return "Fan.Sys.FanDecimal";
            break;
          case 'F':
            if (typeName == "Float") return "Fan.Sys.FanFloat";
            break;
          case 'I':
            if (typeName == "Int") return "Fan.Sys.FanInt";
            break;
          case 'N':
            if (typeName == "Num") return "Fan.Sys.FanNum";
            break;
          case 'O':
            if (typeName == "Obj") return "Fan.Sys.FanObj";
            break;
          case 'S':
            if (typeName == "Str") return "Fan.Sys.FanStr";
            break;
        }
      }
      return "Fan." + FanUtil.upper(podName, false) + "." + typeName;
    }
public static string toDotnetImplTypeName ( string podName , string typeName ) { if ( podName == " " ) { switch ( typeName [ 0 ] ) { case ' ' : if ( typeName == " " ) return " " ; break ; case ' ' : if ( typeName == " " ) return " " ; break ; case ' ' : if ( typeName == " " ) return " " ; break ; case ' ' : if ( typeName == " " ) return " " ; break ; case ' ' : if ( typeName == " " ) return " " ; break ; case ' ' : if ( typeName == " " ) return " " ; break ; case ' ' : if ( typeName == " " ) return " " ; break ; } } return " " + FanUtil . upper ( podName , false ) + " " + typeName ; }
Given a Fantom qname, get the .NET implementation class name:
Given a Fantom qname get the . NET implementation class name :
podName
string
typeName
string