Change several ValueTask properties to methods (#16691)
authorStephen Toub <stoub@microsoft.com>
Thu, 1 Mar 2018 21:58:54 +0000 (16:58 -0500)
committerGitHub <noreply@github.com>
Thu, 1 Mar 2018 21:58:54 +0000 (16:58 -0500)
commit30e4f0f4a39b4b089035012506473a0aa0561978
treef8936c013d3d87f8c61582744d80bb8dea046487
parente15c9d0894f70aa53905fbbe8e72b4b863da0555
Change several ValueTask properties to methods (#16691)

These do unsafe casts on an object, and we don't want a debugger's automatic evaluation accidentally invoking them.  That means either making them methods or adding [DebuggerBrowsable(DebuggerBrowsableState.Never)], and the former seems cleaner.
src/mscorlib/shared/System/Runtime/CompilerServices/ConfiguredValueTaskAwaitable.cs
src/mscorlib/shared/System/Runtime/CompilerServices/ValueTaskAwaiter.cs
src/mscorlib/shared/System/Threading/Tasks/ValueTask.cs