Skip to content

Commit

Permalink
Allow seems to be the prefered nomenclature
Browse files Browse the repository at this point in the history
  • Loading branch information
jbevain committed May 21, 2024
1 parent 385578f commit cd67c87
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Mono.Cecil/GenericParameter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@ public bool HasDefaultConstructorConstraint {
set { attributes = attributes.SetAttributes ((ushort) GenericParameterAttributes.DefaultConstructorConstraint, value); }
}

public bool HasAcceptByRefLikeConstraint {
get { return attributes.GetAttributes ((ushort) GenericParameterAttributes.AcceptByRefLikeConstraint); }
set { attributes = attributes.SetAttributes ((ushort) GenericParameterAttributes.AcceptByRefLikeConstraint, value); }
public bool AllowByRefLikeConstraint {
get { return attributes.GetAttributes ((ushort) GenericParameterAttributes.AllowByRefLikeConstraint); }
set { attributes = attributes.SetAttributes ((ushort) GenericParameterAttributes.AllowByRefLikeConstraint, value); }
}

#endregion
Expand Down
2 changes: 1 addition & 1 deletion Mono.Cecil/GenericParameterAttributes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ public enum GenericParameterAttributes : ushort {
ReferenceTypeConstraint = 0x0004,
NotNullableValueTypeConstraint = 0x0008,
DefaultConstructorConstraint = 0x0010,
AcceptByRefLikeConstraint = 0x0020,
AllowByRefLikeConstraint = 0x0020,
}
}

0 comments on commit cd67c87

Please sign in to comment.