网上演练
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
810 B

#if FAT
using System;
namespace LinqInternal.Threading.Needles
{
internal sealed class NotNull<T> : Needle<T>
{
public NotNull(T target)
: base(target)
{
if (ReferenceEquals(target, null))
{
throw new ArgumentNullException("target", "NotNull cannot have a null value.");
}
}
public override T Value
{
get { return base.Value; }
set
{
if (ReferenceEquals(value, null))
{
throw new ArgumentNullException("value", "NotNull cannot have a null value.");
}
else
{
SetTargetValue(value);
}
}
}
}
}
#endif