Allow NotNull and Nullable on properties

This commit is contained in:
Sam Harwell 2013-02-19 11:23:21 -06:00
parent f45c70fcd5
commit 4593f43c57
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
{
using System;
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Parameter | AttributeTargets.ReturnValue, Inherited = true, AllowMultiple = false)]
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.Property, Inherited = true, AllowMultiple = false)]
public sealed class NotNullAttribute : Attribute
{
}

View File

@ -2,7 +2,7 @@
{
using System;
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Parameter | AttributeTargets.ReturnValue, Inherited = true, AllowMultiple = false)]
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.Property, Inherited = true, AllowMultiple = false)]
public sealed class NullableAttribute : Attribute
{
}