Example #1
0
 /// <summary>Initializes a new instance of the <see cref="CorrespondingTypeAttribute"/> class.</summary>
 /// <param name="action">The actions allowed for the type.</param>
 public CorrespondingTypeAttribute(CorrespondingAction action) => Action = action;
Example #2
0
 /// <summary>Initializes a new instance of the <see cref="CorrespondingTypeAttribute"/> class.</summary>
 /// <param name="typeRef">The type that corresponds to this enumeration value.</param>
 /// <param name="action">The actions allowed for the type.</param>
 public CorrespondingTypeAttribute(Type typeRef, CorrespondingAction action = CorrespondingAction.GetSet)
 {
     TypeRef = typeRef;
     Action  = action;
 }