浏览代码

Simplifying OfType.

Bart De Smet 8 年之前
父节点
当前提交
b832f383e4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      AsyncRx.NET/System.Reactive.Async/System/Reactive/Linq/Operators/OfType.cs

+ 1 - 1
AsyncRx.NET/System.Reactive.Async/System/Reactive/Linq/Operators/OfType.cs

@@ -22,7 +22,7 @@ namespace System.Reactive.Linq
             if (observer == null)
             if (observer == null)
                 throw new ArgumentNullException(nameof(observer));
                 throw new ArgumentNullException(nameof(observer));
 
 
-            return Where(Select<TSource, TResult>(observer, x => (TResult)(object)x), x => x is TResult);
+            return Where(Cast<TSource, TResult>(observer), x => x is TResult);
         }
         }
     }
     }
 }
 }