src/sys/dotnet/fanx/util/FanUtil.cs
/// <summary>
/// Convert .NET type to Fantom type.
/// </summary>
Convert .NET type to Fantom type.
Convert . NET type to Fantom type .
public static Fan.Sys.Type toFanType(Type dotnetType, bool check)
    {
      Fan.Sys.Type t = (Fan.Sys.Type)dotnetToFanTypes[dotnetType.FullName];
      if (t != null) return t;
      if (!check) return null;
      throw Fan.Sys.Err.make("Not a Fantom type: " + dotnetType).val;
    }
public static Fan . Sys . Type toFanType ( Type dotnetType , bool check ) { Fan . Sys . Type t = ( Fan . Sys . Type ) dotnetToFanTypes [ dotnetType . FullName ] ; if ( t != null ) return t ; if ( ! check ) return null ; throw Fan . Sys . Err . make ( " " + dotnetType ) . val ; }
Convert .NET type to Fantom type.
Convert . NET type to Fantom type .
dotnetType
Type
check
bool