| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- // Licensed to the .NET Foundation under one or more agreements.
- // The .NET Foundation licenses this file to you under the Apache 2.0 License.
- // See the LICENSE file in the project root for more information.
- using System;
- using System.Linq;
- using System.Reactive.Linq;
- using System.Reflection;
- namespace ApiCompare
- {
- class Program
- {
- static void Main()
- {
- var observable = typeof(Observable).GetMethods(BindingFlags.Public | BindingFlags.Static).Select(m => m.Name).Distinct();
- var asyncObservable = typeof(AsyncObservable).GetMethods(BindingFlags.Public | BindingFlags.Static).Select(m => m.Name).Distinct();
- var exclude = new[]
- {
- "AsObservable", // Trivially renamed to AsAsyncObservable.
- "And", // Postponing patterns.
- "Then", // Postponing patterns.
- "When", // Postponing patterns.
- "If", // Postponing imperative operators.
- "DoWhile", // Postponing imperative operators.
- "Case", // Postponing imperative operators.
- "For", // Postponing imperative operators.
- "While", // Postponing imperative operators.
- "Collect", // Postponing push-to-pull adapters.
- "Chunkify", // Postponing push-to-pull adapters.
- "GetEnumerator", // Postponing push-to-pull adapters.
- "Latest", // Postponing push-to-pull adapters.
- "MostRecent", // Postponing push-to-pull adapters.
- "Next", // Postponing push-to-pull adapters.
- "ToEnumerable", // Postponing push-to-pull adapters.
- };
- var missing = observable.Except(exclude).Except(asyncObservable).OrderBy(m => m);
- foreach (var m in missing)
- {
- Console.WriteLine(m);
- }
- Console.WriteLine();
- Console.WriteLine("Count = " + missing.Count());
- }
- }
- }
|