Hi, On Tue, Dec 8, 2009 at 10:19 PM, Johannes <[email protected]> wrote: > So does the SVN-cecil include equals-methods or do I have to roll my > own Comparer method?
Yes, Cecil doesn't override Equals and GetHashCode, you have to roll your own equality comparer for now. > The collection types don't have generic enumerators. That prevents > using var in foreach loops. That will be fixed in the next version. > The variant definition classes lack a super class, over which I could > do my checks without worrying about the actual type. Am not sure to get what you mean? > I haven't included events in my checks because I don't see a way how > to check their accessibility. Events, just like Properties, are just metadata gluing together methods. You have to poke at their methods (which can have different visibilities). > The check IsFamily doesn't seem to return true if IsFamilyOrAssembly > or IsFamilyAndAssembly are true (IsAssembly has the same problem). > Checking for protected access requires to look for the single and at > least one of the combined attributes. That is somewhat inconvenient. Well, each of them is just a bit check on the flags of the method. You can roll out your own methods to test globally, but it's important to be able to make the distinction between the «family», «family or assembly», and «family and assembly» which are three very distinct visibilities. -- Jb Evain <[email protected]> -- -- mono-cecil
