Skip to content

Commit 393b157

Browse files
authored
Merge pull request #729 from danielcweber/RemoveVerbatimPrefixes
Remove verbatim prefixes as suggested by ReSharper.
2 parents f650dde + 7490d36 commit 393b157

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

Rx.NET/Source/src/System.Reactive/Concurrency/DefaultScheduler.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,9 @@ public LongScheduledWorkItem(TState state, Action<TState, ICancelable> action)
169169
_action = action;
170170

171171
_cal.StartThread(
172-
@thisObject =>
172+
thisObject =>
173173
{
174-
var @this = (LongScheduledWorkItem<TState>)@thisObject;
174+
var @this = (LongScheduledWorkItem<TState>)thisObject;
175175

176176
//
177177
// Notice we don't check d.IsDisposed. The contract for ISchedulerLongRunning

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ public IDisposable Run(IScheduler self, TState s, Func<IScheduler, TState, Cance
2121
return Disposable.Empty;
2222

2323
action(new CancelableScheduler(self, _cts.Token), s, _cts.Token).ContinueWith(
24-
(t, @thisObject) =>
24+
(t, thisObject) =>
2525
{
2626
if (!t.IsCanceled)
2727
{
28-
var @this = (AsyncInvocation<TState>)@thisObject;
28+
var @this = (AsyncInvocation<TState>)thisObject;
2929

3030
t.Exception?.Handle(e => e is OperationCanceledException);
3131

Rx.NET/Source/src/System.Reactive/Concurrency/TaskPoolScheduler.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ public ScheduledWorkItem(TaskPoolScheduler scheduler, TState state, Func<ISchedu
3333
Disposable.SetSingle(ref _cancel, cancelable);
3434

3535
scheduler._taskFactory.StartNew(
36-
@thisObject =>
36+
thisObject =>
3737
{
38-
var @this = (ScheduledWorkItem<TState>)@thisObject;
38+
var @this = (ScheduledWorkItem<TState>)thisObject;
3939
//
4040
// BREAKING CHANGE v2.0 > v1.x - No longer escalating exceptions using a throwing
4141
// helper thread.
@@ -90,7 +90,7 @@ public SlowlyScheduledWorkItem(TaskPoolScheduler scheduler, TState state, TimeSp
9090
Disposable.SetSingle(ref _cancel, ct);
9191

9292
TaskHelpers.Delay(dueTime, ct.Token).ContinueWith(
93-
(_, @thisObject) =>
93+
(_, thisObject) =>
9494
{
9595
var @this = (SlowlyScheduledWorkItem<TState>)thisObject;
9696

@@ -124,7 +124,7 @@ public LongScheduledWorkItem(TaskPoolScheduler scheduler, TState state, Action<T
124124
_action = action;
125125

126126
scheduler._taskFactory.StartNew(
127-
@thisObject =>
127+
thisObject =>
128128
{
129129
var @this = (LongScheduledWorkItem<TState>)thisObject;
130130

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ public override void OnNext(Task<TSource> value)
299299
}
300300
else
301301
{
302-
value.ContinueWith((t, @thisObject) => ((_)@thisObject).OnCompletedTask(t), this);
302+
value.ContinueWith((t, thisObject) => ((_)thisObject).OnCompletedTask(t), this);
303303
}
304304
}
305305

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1566,7 +1566,7 @@ public override void OnNext(TSource value)
15661566
}
15671567
else
15681568
{
1569-
task.ContinueWith((closureTask, @thisObject) => ((_)@thisObject).OnCompletedTask(closureTask), this);
1569+
task.ContinueWith((closureTask, thisObject) => ((_)thisObject).OnCompletedTask(closureTask), this);
15701570
}
15711571
}
15721572

@@ -1698,7 +1698,7 @@ public override void OnNext(TSource value)
16981698
}
16991699
else
17001700
{
1701-
task.ContinueWith((closureTask, @thisObject) => ((_)@thisObject).OnCompletedTask(closureTask), this);
1701+
task.ContinueWith((closureTask, thisObject) => ((_)thisObject).OnCompletedTask(closureTask), this);
17021702
}
17031703
}
17041704

0 commit comments

Comments
 (0)