src/sys/dotnet/fanx/util/FanUtil.cs
/// <summary>
/// If the given object is a .NET primitive, make it as
/// a Fantom type, otherwise return obj.
/// </summary>
If the given object is a .NET primitive, make it as
a Fantom type, otherwise return obj.
If the given object is a . NET primitive make it as a Fantom type otherwise return obj .
public static object box(object obj)
    {
      if (obj is bool) return Fan.Sys.Boolean.valueOf((bool)obj);
      if (obj is double) return Fan.Sys.Double.valueOf((double)obj);
      if (obj is long) return Fan.Sys.Long.valueOf((long)obj);
      return obj;
    }
public static object box ( object obj ) { if ( obj is bool ) return Fan . Sys . Boolean . valueOf ( ( bool ) obj ) ; if ( obj is double ) return Fan . Sys . Double . valueOf ( ( double ) obj ) ; if ( obj is long ) return Fan . Sys . Long . valueOf ( ( long ) obj ) ; return obj ; }
If the given object is a .NET primitive, make it as
a Fantom type, otherwise return obj.
If the given object is a . NET primitive make it as a Fantom type otherwise return obj .
obj
object