summaryrefslogtreecommitdiff
path: root/src/System.Private.CoreLib/shared/Internal
diff options
context:
space:
mode:
authorStephen Toub <stoub@microsoft.com>2019-04-12 10:08:38 -0400
committerGitHub <noreply@github.com>2019-04-12 10:08:38 -0400
commitf4e7424a9b56e2da24697f587acc836901a162e9 (patch)
tree0a3425dc94be6f2725480298170f71f165720c5e /src/System.Private.CoreLib/shared/Internal
parenta65921cc086c284ce9146a8bc62aecaac82a655e (diff)
downloadcoreclr-f4e7424a9b56e2da24697f587acc836901a162e9.tar.gz
coreclr-f4e7424a9b56e2da24697f587acc836901a162e9.tar.bz2
coreclr-f4e7424a9b56e2da24697f587acc836901a162e9.zip
Nullable: Runtime serialization, COM, Vector, remaining IO, and other (#23895)
Diffstat (limited to 'src/System.Private.CoreLib/shared/Internal')
-rw-r--r--src/System.Private.CoreLib/shared/Internal/Padding.cs1
-rw-r--r--src/System.Private.CoreLib/shared/Internal/Resources/WindowsRuntimeResourceManagerBase.cs10
-rw-r--r--src/System.Private.CoreLib/shared/Internal/Threading/Tasks/AsyncCausalitySupport.cs1
3 files changed, 7 insertions, 5 deletions
diff --git a/src/System.Private.CoreLib/shared/Internal/Padding.cs b/src/System.Private.CoreLib/shared/Internal/Padding.cs
index 14bf998bab..86050b7fb7 100644
--- a/src/System.Private.CoreLib/shared/Internal/Padding.cs
+++ b/src/System.Private.CoreLib/shared/Internal/Padding.cs
@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
+#nullable enable
using System.Runtime.InteropServices;
namespace Internal
diff --git a/src/System.Private.CoreLib/shared/Internal/Resources/WindowsRuntimeResourceManagerBase.cs b/src/System.Private.CoreLib/shared/Internal/Resources/WindowsRuntimeResourceManagerBase.cs
index 6594ae6f05..531b0fd4e6 100644
--- a/src/System.Private.CoreLib/shared/Internal/Resources/WindowsRuntimeResourceManagerBase.cs
+++ b/src/System.Private.CoreLib/shared/Internal/Resources/WindowsRuntimeResourceManagerBase.cs
@@ -2,7 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
-using System;
+#nullable enable
using System.Globalization;
namespace Internal.Resources
@@ -11,11 +11,11 @@ namespace Internal.Resources
// allowing us to ask for a WinRT-specific ResourceManager.
public abstract class WindowsRuntimeResourceManagerBase
{
- public abstract bool Initialize(string libpath, string reswFilename, out PRIExceptionInfo exceptionInfo);
+ public abstract bool Initialize(string libpath, string reswFilename, out PRIExceptionInfo? exceptionInfo);
- public abstract string GetString(string stringName, string startingCulture, string neutralResourcesCulture);
+ public abstract string GetString(string stringName, string? startingCulture, string? neutralResourcesCulture);
- public abstract CultureInfo GlobalResourceContextBestFitCultureInfo
+ public abstract CultureInfo? GlobalResourceContextBestFitCultureInfo
{
get;
}
@@ -26,7 +26,7 @@ namespace Internal.Resources
/// Check whether CultureData exists for specified cultureName
/// This API is used for WindowsRuntimeResourceManager in System.Runtime.WindowsRuntime
/// </summary>
- public static bool IsValidCulture(string cultureName)
+ public static bool IsValidCulture(string? cultureName)
{
return CultureData.GetCultureData(cultureName, /* useUserOverride */ true) != null;
}
diff --git a/src/System.Private.CoreLib/shared/Internal/Threading/Tasks/AsyncCausalitySupport.cs b/src/System.Private.CoreLib/shared/Internal/Threading/Tasks/AsyncCausalitySupport.cs
index dcea41dbab..54df96db66 100644
--- a/src/System.Private.CoreLib/shared/Internal/Threading/Tasks/AsyncCausalitySupport.cs
+++ b/src/System.Private.CoreLib/shared/Internal/Threading/Tasks/AsyncCausalitySupport.cs
@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
+#nullable enable
using System.Threading.Tasks;
using System.Runtime.CompilerServices;