Skip to content

Commit

Permalink
Annotate System.ComponentModel for nullable (dotnet/corefx#41160)
Browse files Browse the repository at this point in the history
* Annotate System.ComponentModel for nullable

* Applying feedback


Commit migrated from dotnet/corefx@90870e3
  • Loading branch information
buyaa-n authored and stephentoub committed Sep 18, 2019
1 parent 9d2dfad commit 251a92f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace System
{
public partial interface IServiceProvider
{
object GetService(System.Type serviceType);
object? GetService(System.Type? serviceType);
}
}
namespace System.ComponentModel
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Configurations>netcoreapp-Debug;netcoreapp-Release;uap-Debug;uap-Release</Configurations>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<Compile Include="System.ComponentModel.cs" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<AssemblyName>System.ComponentModel</AssemblyName>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<Configurations>netcoreapp-Debug;netcoreapp-Release;uap-Windows_NT-Debug;uap-Windows_NT-Release</Configurations>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<Compile Include="System\IServiceProvider.cs" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ namespace System
{
public interface IServiceProvider
{
object GetService(Type serviceType);
object? GetService(Type serviceType);
}
}

0 comments on commit 251a92f

Please sign in to comment.