More progress... Is it because Contains() uses the base.List.Contains(), which just does a simple equality check on the CustomAttribute and since CustomAttribute doesn't customize Equals it returs false? This code:
CustomAttribute myAttrib = new CustomAttribute(myAttribCtor); CustomAttribute myAttrib2 = new CustomAttribute(myAttribCtor); bool areEqual = myAttrib == myAttrib2; always returns false. --~--~---------~--~----~------------~-------~--~----~ -- mono-cecil -~----------~----~----~----~------~----~------~--~---
