File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -165,6 +165,11 @@ public bool HasDefaultConstructorConstraint {
165165 set { attributes = attributes . SetAttributes ( ( ushort ) GenericParameterAttributes . DefaultConstructorConstraint , value ) ; }
166166 }
167167
168+ public bool AllowByRefLikeConstraint {
169+ get { return attributes . GetAttributes ( ( ushort ) GenericParameterAttributes . AllowByRefLikeConstraint ) ; }
170+ set { attributes = attributes . SetAttributes ( ( ushort ) GenericParameterAttributes . AllowByRefLikeConstraint , value ) ; }
171+ }
172+
168173 #endregion
169174
170175 public GenericParameter ( IGenericParameterProvider owner )
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ public enum GenericParameterAttributes : ushort {
2222 SpecialConstraintMask = 0x001c ,
2323 ReferenceTypeConstraint = 0x0004 ,
2424 NotNullableValueTypeConstraint = 0x0008 ,
25- DefaultConstructorConstraint = 0x0010
25+ DefaultConstructorConstraint = 0x0010 ,
26+ AllowByRefLikeConstraint = 0x0020 ,
2627 }
2728}
You can’t perform that action at this time.
0 commit comments