示例#1
0
文件: Union.cs 项目: ltwlf/IronSP
 public static MutableString /*!*/ String(this Union <MutableString, int> union)
 {
     Debug.Assert(!union.IsFixnum());
     return(union.First);
 }
示例#2
0
文件: Union.cs 项目: ltwlf/IronSP
 public static int Fixnum(this Union <MutableString, int> union)
 {
     Debug.Assert(union.IsFixnum());
     return(union.Second);
 }
示例#3
0
文件: Union.cs 项目: ltwlf/IronSP
 public static bool IsFixnum(this Union <MutableString, int> union)
 {
     return(ReferenceEquals(union.First, null));
 }
示例#4
0
文件: Union.cs 项目: ltwlf/IronSP
 public static MutableString /*!*/ String(this Union <int, MutableString> union)
 {
     Debug.Assert(!union.IsFixnum());
     return(union.Second);
 }
示例#5
0
文件: Union.cs 项目: ltwlf/IronSP
 public static int Fixnum(this Union <int, MutableString> union)
 {
     Debug.Assert(union.IsFixnum());
     return(union.First);
 }
示例#6
0
文件: Union.cs 项目: ltwlf/IronSP
 public static bool IsFixnum(this Union <int, MutableString> union)
 {
     return(ReferenceEquals(union.Second, null));
 }