File tree Expand file tree Collapse file tree
AsmResolver.PE/DotNet/Metadata/Tables Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -155,6 +155,16 @@ public bool HasDefaultConstructorConstraint
155155 | ( value ? GenericParameterAttributes . DefaultConstructorConstraint : default ) ;
156156 }
157157
158+ /// <summary>
159+ /// Gets or sets a value indicating whether this generic parameter has <see cref="GenericParameterAttributes.AllowByRefLike"/> enabled.
160+ /// </summary>
161+ public bool HasAllowByRefLike
162+ {
163+ get => ( Attributes & GenericParameterAttributes . AllowByRefLike ) != 0 ;
164+ set => Attributes = ( Attributes & ~ GenericParameterAttributes . AllowByRefLike )
165+ | ( value ? GenericParameterAttributes . AllowByRefLike : default ) ;
166+ }
167+
158168 /// <summary>
159169 /// Gets the index of this parameter within the list of generic parameters that the owner defines.
160170 /// </summary>
Original file line number Diff line number Diff line change @@ -40,5 +40,9 @@ public enum GenericParameterAttributes : ushort
4040 /// Specifies the generic parameter's type argument must have a public default constructor.
4141 /// </summary>
4242 DefaultConstructorConstraint = 0x0010 ,
43+ /// <summary>
44+ /// Specifies the generic parameter can be a ref struct type.
45+ /// </summary>
46+ AllowByRefLike = 0x0020 ,
4347 }
4448}
You can’t perform that action at this time.
0 commit comments