GenericParameterAttributes attrs = t.GenericParameterAttributes & GenericParameterAttributes.SpecialConstraintMask;
GenericParameterAttributes [] interesting = {
GenericParameterAttributes.ReferenceTypeConstraint,
- GenericParameterAttributes.ValueTypeConstraint,
+ GenericParameterAttributes.NotNullableValueTypeConstraint,
GenericParameterAttributes.DefaultConstructorConstraint
};
case GenericParameterAttributes.ReferenceTypeConstraint:
o.Write ("class");
break;
- case GenericParameterAttributes.ValueTypeConstraint:
+ case GenericParameterAttributes.NotNullableValueTypeConstraint:
o.Write ("struct");
break;
case GenericParameterAttributes.DefaultConstructorConstraint:
if (options.ShowPrivate)
return true;
+
+ if (options.FilterObsolete && mi.IsDefined (typeof (ObsoleteAttribute), false))
+ return false;
switch (mi.MemberType) {
case MemberTypes.Constructor: