RequiredAttribute<T> public sealed class RequiredAttribute<T> : RequiredAttribute Checks whether the data field of type Optional<T> has a value. Documentation Code public bool AllowNull { get; set; } Specifies whether Optional<T> may contain null value. public RequiredAttribute()