コード例 #1
0
 //Specificity to resolve ambiguity between FList-IEnumerable
 public static FList <T> operator+(FList <T> lhs, FList <T> rhs)
 {
     return(FList.Cast(lhs.collection.Concat(rhs.collection)));
 }
コード例 #2
0
 public static FList <T> operator+(IEnumerable <T> lhs, FList <T> rhs)
 {
     return(FList.Cast(FList.Cast(lhs).collection.Concat(rhs)));
 }
コード例 #3
0
ファイル: FList.cs プロジェクト: FelixDeCat/DaVinci_Practicas
 public static FList <T> operator+(T lhs, FList <T> rhs)
 {
     return(FList.Cast(Enumerable.Empty <T>().DefaultIfEmpty(lhs).Concat(rhs)));
 }