From: Santiago Fernandez Madero Date: Wed, 12 Jun 2019 22:20:28 +0000 (-0500) Subject: Add nullable annotations to System.Runtime.Intrinsics ref assembly (dotnet/corefx... X-Git-Tag: submit/tizen/20210909.063632~11031^2~1312 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=52ab5fbcaf080a1eea667389d651c353936c520b;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Add nullable annotations to System.Runtime.Intrinsics ref assembly (dotnet/corefx#37944) Commit migrated from https://github.com/dotnet/corefx/commit/550c5f5fcc9d5b552be749a1b0c49d6f31e38ade --- diff --git a/src/libraries/System.Runtime.Intrinsics/ref/System.Runtime.Intrinsics.cs b/src/libraries/System.Runtime.Intrinsics/ref/System.Runtime.Intrinsics.cs index d15538c..eaba0e9 100644 --- a/src/libraries/System.Runtime.Intrinsics/ref/System.Runtime.Intrinsics.cs +++ b/src/libraries/System.Runtime.Intrinsics/ref/System.Runtime.Intrinsics.cs @@ -109,12 +109,12 @@ namespace System.Runtime.Intrinsics private readonly int _dummyPrimitive; public static int Count { get { throw null; } } public static System.Runtime.Intrinsics.Vector128 Zero { get { throw null; } } - public override bool Equals(object obj) { throw null; } + public override bool Equals(object? obj) { throw null; } public bool Equals(System.Runtime.Intrinsics.Vector128 other) { throw null; } public override int GetHashCode() { throw null; } public override string ToString() { throw null; } - public string ToString(string format) { throw null; } - public string ToString(string format, System.IFormatProvider formatProvider) { throw null; } + public string ToString(string? format) { throw null; } + public string ToString(string? format, System.IFormatProvider? formatProvider) { throw null; } } public static partial class Vector256 { @@ -216,12 +216,12 @@ namespace System.Runtime.Intrinsics private readonly int _dummyPrimitive; public static int Count { get { throw null; } } public static System.Runtime.Intrinsics.Vector256 Zero { get { throw null; } } - public override bool Equals(object obj) { throw null; } + public override bool Equals(object? obj) { throw null; } public bool Equals(System.Runtime.Intrinsics.Vector256 other) { throw null; } public override int GetHashCode() { throw null; } public override string ToString() { throw null; } - public string ToString(string format) { throw null; } - public string ToString(string format, System.IFormatProvider formatProvider) { throw null; } + public string ToString(string? format) { throw null; } + public string ToString(string? format, System.IFormatProvider? formatProvider) { throw null; } } public static partial class Vector64 { @@ -295,12 +295,12 @@ namespace System.Runtime.Intrinsics private readonly int _dummyPrimitive; public static int Count { get { throw null; } } public static System.Runtime.Intrinsics.Vector64 Zero { get { throw null; } } - public override bool Equals(object obj) { throw null; } + public override bool Equals(object? obj) { throw null; } public bool Equals(System.Runtime.Intrinsics.Vector64 other) { throw null; } public override int GetHashCode() { throw null; } public override string ToString() { throw null; } - public string ToString(string format) { throw null; } - public string ToString(string format, System.IFormatProvider formatProvider) { throw null; } + public string ToString(string? format) { throw null; } + public string ToString(string? format, System.IFormatProvider? formatProvider) { throw null; } } } namespace System.Runtime.Intrinsics.X86 diff --git a/src/libraries/System.Runtime.Intrinsics/ref/System.Runtime.Intrinsics.csproj b/src/libraries/System.Runtime.Intrinsics/ref/System.Runtime.Intrinsics.csproj index 878c747..69bb4c9 100644 --- a/src/libraries/System.Runtime.Intrinsics/ref/System.Runtime.Intrinsics.csproj +++ b/src/libraries/System.Runtime.Intrinsics/ref/System.Runtime.Intrinsics.csproj @@ -3,6 +3,7 @@ true {F9097917-AFA3-4E3E-A592-BFA2C483C7E2} netcoreapp-Debug;netcoreapp-Release + enable