﻿#if NULLABLE_SHIMS
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace System.Diagnostics.CodeAnalysis
{
	[AttributeUsage(AttributeTargets.Parameter, Inherited = false)]
	public sealed class MaybeNullWhenAttribute : Attribute
	{
		public MaybeNullWhenAttribute(bool returnValue) { ReturnValue = returnValue; }

		public bool ReturnValue { get; }
	}
}
#endif

﻿#if NULLABLE_SHIMS
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace System.Diagnostics.CodeAnalysis
{
	[AttributeUsage(AttributeTargets.Parameter, Inherited = false)]
	internal sealed class MaybeNullWhenAttribute : Attribute
	{
		public MaybeNullWhenAttribute(bool returnValue) { ReturnValue = returnValue; }

		public bool ReturnValue { get; }
	}
}
#endif

Change MaybeNullWhenAttribute to internal to remove collision with diagnostics ns
Change MaybeNullWhenAttribute to internal to remove collision with diagnostics ns