Sfoglia il codice sorgente

Remove verbatim prefixes as suggested by ReSharper.

Daniel Weber 7 anni fa
parent
commit
7490d36a1b

+ 2 - 2
Rx.NET/Source/src/System.Reactive/Concurrency/DefaultScheduler.cs

@@ -169,9 +169,9 @@ namespace System.Reactive.Concurrency
                     _action = action;
 
                     _cal.StartThread(
-                        @thisObject =>
+                        thisObject =>
                         {
-                            var @this = (LongScheduledWorkItem<TState>)@thisObject;
+                            var @this = (LongScheduledWorkItem<TState>)thisObject;
 
                             //
                             // Notice we don't check d.IsDisposed. The contract for ISchedulerLongRunning

+ 2 - 2
Rx.NET/Source/src/System.Reactive/Concurrency/Scheduler.Async.cs

@@ -21,11 +21,11 @@ namespace System.Reactive.Concurrency
                     return Disposable.Empty;
 
                 action(new CancelableScheduler(self, _cts.Token), s, _cts.Token).ContinueWith(
-                    (t, @thisObject) =>
+                    (t, thisObject) =>
                     {
                         if (!t.IsCanceled)
                         {
-                            var @this = (AsyncInvocation<TState>)@thisObject;
+                            var @this = (AsyncInvocation<TState>)thisObject;
 
                             t.Exception?.Handle(e => e is OperationCanceledException);
 

+ 4 - 4
Rx.NET/Source/src/System.Reactive/Concurrency/TaskPoolScheduler.cs

@@ -33,9 +33,9 @@ namespace System.Reactive.Concurrency
                 Disposable.SetSingle(ref _cancel, cancelable);
 
                 scheduler._taskFactory.StartNew(
-                    @thisObject =>
+                    thisObject =>
                     {
-                        var @this = (ScheduledWorkItem<TState>)@thisObject;
+                        var @this = (ScheduledWorkItem<TState>)thisObject;
                         //
                         // BREAKING CHANGE v2.0 > v1.x - No longer escalating exceptions using a throwing
                         //                               helper thread.
@@ -90,7 +90,7 @@ namespace System.Reactive.Concurrency
                 Disposable.SetSingle(ref _cancel, ct);
 
                 TaskHelpers.Delay(dueTime, ct.Token).ContinueWith(
-                    (_, @thisObject) =>
+                    (_, thisObject) =>
                     {
                         var @this = (SlowlyScheduledWorkItem<TState>)thisObject;
 
@@ -124,7 +124,7 @@ namespace System.Reactive.Concurrency
                 _action = action;
 
                 scheduler._taskFactory.StartNew(
-                    @thisObject =>
+                    thisObject =>
                     {
                         var @this = (LongScheduledWorkItem<TState>)thisObject;
 

+ 1 - 1
Rx.NET/Source/src/System.Reactive/Linq/Observable/Merge.cs

@@ -299,7 +299,7 @@ namespace System.Reactive.Linq.ObservableImpl
                     }
                     else
                     {
-                        value.ContinueWith((t, @thisObject) => ((_)@thisObject).OnCompletedTask(t), this);
+                        value.ContinueWith((t, thisObject) => ((_)thisObject).OnCompletedTask(t), this);
                     }
                 }
 

+ 2 - 2
Rx.NET/Source/src/System.Reactive/Linq/Observable/SelectMany.cs

@@ -1566,7 +1566,7 @@ namespace System.Reactive.Linq.ObservableImpl
                     }
                     else
                     {
-                        task.ContinueWith((closureTask, @thisObject) => ((_)@thisObject).OnCompletedTask(closureTask), this);
+                        task.ContinueWith((closureTask, thisObject) => ((_)thisObject).OnCompletedTask(closureTask), this);
                     }
                 }
 
@@ -1698,7 +1698,7 @@ namespace System.Reactive.Linq.ObservableImpl
                     }
                     else
                     {
-                        task.ContinueWith((closureTask, @thisObject) => ((_)@thisObject).OnCompletedTask(closureTask), this);
+                        task.ContinueWith((closureTask, thisObject) => ((_)thisObject).OnCompletedTask(closureTask), this);
                     }
                 }