Skip to content

Instantly share code, notes, and snippets.

@jlennox
Last active June 18, 2018 15:06
Show Gist options
  • Save jlennox/60318af13c22a028fc98779191aba4e6 to your computer and use it in GitHub Desktop.
Save jlennox/60318af13c22a028fc98779191aba4e6 to your computer and use it in GitHub Desktop.
List of framework structs in .NET that are now readonly with C# 7.2
ArraySegment<T>
CancellationToken
CancellationTokenRegistration
ConfiguredTaskAwaitable
ConfiguredTaskAwaitable<TResult>
ConfiguredTaskAwaiter
ConfiguredValueTaskAwaitable
ConfiguredValueTaskAwaitable<TResult>
ConfiguredValueTaskAwaiter
DateTime
KeyValuePair<TKey, TValue>
Memory<T>
ParameterModifier
ReadOnlyMemory<T>
ReadOnlySpan<T>
Span<T>
StreamingContext
TaskAwaiter
TaskAwaiter<TResult>
TransitionTime
ValueTask
ValueTask<TResult>
ValueTaskAwaiter
ValueTaskAwaiter<TResult>
YieldAwaitable
YieldAwaiter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment