diff --git a/Mono.Cecil/GenericParameter.cs b/Mono.Cecil/GenericParameter.cs index f3249f86e..de746449b 100644 --- a/Mono.Cecil/GenericParameter.cs +++ b/Mono.Cecil/GenericParameter.cs @@ -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 diff --git a/Mono.Cecil/GenericParameterAttributes.cs b/Mono.Cecil/GenericParameterAttributes.cs index 4d062b030..51f094f47 100644 --- a/Mono.Cecil/GenericParameterAttributes.cs +++ b/Mono.Cecil/GenericParameterAttributes.cs @@ -23,6 +23,6 @@ public enum GenericParameterAttributes : ushort { ReferenceTypeConstraint = 0x0004, NotNullableValueTypeConstraint = 0x0008, DefaultConstructorConstraint = 0x0010, - AcceptByRefLikeConstraint = 0x0020, + AllowByRefLikeConstraint = 0x0020, } }