浏览代码

Fix build error

Oren Novotny 7 年之前
父节点
当前提交
0ae1af3798
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      Ix.NET/Source/System.Interactive.Providers/System/Linq/QueryableEx.Generated.cs

+ 8 - 0
Ix.NET/Source/System.Interactive.Providers/System/Linq/QueryableEx.Generated.cs

@@ -2152,7 +2152,11 @@ namespace System.Linq
         [EditorBrowsable(EditorBrowsableState.Never)]
         public static IEnumerable<TSource> TakeLast<TSource>(IEnumerable<TSource> source, int count)
         {
+#if REFERENCE_ASSEMBLY
+            return null;
+#else
             return EnumerableEx.TakeLast(source, count);
+#endif
         }
 #pragma warning restore 1591
 
@@ -2186,7 +2190,11 @@ namespace System.Linq
         [EditorBrowsable(EditorBrowsableState.Never)]
         public static IEnumerable<TSource> SkipLast<TSource>(IEnumerable<TSource> source, int count)
         {
+#if REFERENCE_ASSEMBLY
+            return null;
+#else
             return EnumerableEx.SkipLast(source, count);
+#endif
         }
 #pragma warning restore 1591