#if FAT using System; namespace LinqInternal.Threading.Needles { internal sealed class NotNull : Needle { 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