我有一个正在转换为Boo的旧C#库,它使用操作符重载。为了不进入其中的原因,我正在寻找一种方法做同样的事情在Boo。它的形式如下:
public static bool operator <(Duration duration, TimeSpantimespan) {...}public static def op_LessThan(duration as Duration, timespan as TimeSpan) as
我需要更改这段代码,以便在下面的代码中使用c#的早期版本--如何更改类似于此的条件是为了c#吗?ToInvariantString(); SetDateTimeFormat(style, d.Date == d);else if (value is TimeSpantypeof(T).GetUnderlyingType()); }