Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes typos and formatting in comments #76975

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions src/libraries/System.Private.CoreLib/src/System/Nullable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@
namespace System
{
// Because we have special type system support that says a boxed Nullable<T>
// can be used where a boxed<T> is use, Nullable<T> can not implement any interfaces
// at all (since T may not). Do NOT add any interfaces to Nullable!
// can be used where a boxed T is used, Nullable<T> can not implement any interfaces
// at all (since T may not).
//
// Do NOT add any interfaces to Nullable!

[Serializable]
[NonVersionable] // This only applies to field layout
[System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
Expand Down Expand Up @@ -96,7 +98,7 @@ public static bool Equals<T>(Nullable<T> n1, Nullable<T> n2) where T : struct
}

// If the type provided is not a Nullable Type, return null.
// Otherwise, returns the underlying type of the Nullable type
// Otherwise, return the underlying type of the Nullable type
public static Type? GetUnderlyingType(Type nullableType)
{
ArgumentNullException.ThrowIfNull(nullableType);
Expand All @@ -118,7 +120,7 @@ public static bool Equals<T>(Nullable<T> n1, Nullable<T> n2) where T : struct

if (nullableType.IsGenericType && !nullableType.IsGenericTypeDefinition)
{
// instantiated generic type only
// Instantiated generic type only
Type genericType = nullableType.GetGenericTypeDefinition();
if (object.ReferenceEquals(genericType, typeof(Nullable<>)))
{
Expand Down