Skip to content

Commit

Permalink
Compile nullable attributes as internal
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelstaib committed Oct 18, 2020
1 parent f925bfe commit baef95e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Expand Up @@ -68,7 +68,7 @@ public bool IncludeTotalCount
IDescriptor descriptor,
ICustomAttributeProvider element)
{
if (element is MemberInfo m)
if (element is MemberInfo)
{
if (descriptor is IObjectFieldDescriptor ofd)
{
Expand Down
4 changes: 3 additions & 1 deletion src/Nullable.cs
@@ -1,4 +1,6 @@
#if NETSTANDARD2_0 || NETCOREAPP2_1
#pragma warning disable MA0048 // File name must match type name
#define INTERNAL_NULLABLE_ATTRIBUTES
#if NETSTANDARD2_0 || NETCOREAPP2_0 || NETCOREAPP2_1 || NETCOREAPP2_2 || NET45 || NET451 || NET452 || NET6 || NET461 || NET462 || NET47 || NET471 || NET472 || NET48

// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
Expand Down

0 comments on commit baef95e

Please sign in to comment.