[Mono-dev] Mono.Cecil: Full names of generic types
Matej Urbas
matej.urbas at gmail.com
Mon Jul 24 08:18:04 EDT 2006
On Mon, 2006-07-24 at 11:20 +0200, Jb Evain wrote:
> > 3. Oh, and to what extent is Mono.Cecil compatible with
> > System.Reflection? E.g.: are the Mono.Cecil.GenericParamAttributes and
> > System.Reflection.GenericParameterAttributes cast safe? - I mean, can
> > they be cast from one-another and still preserve the expected information?
>
> Check that the values are the same before doing so. In theory, it "may"
> work.
I figured that they are 'compatible'. But there is one slight
difference. You are missing a 'n' in DefaultConstructorConstraint :D
Compare:
System.Reflection.GenericParameterAttributes.DefaultConstructorConstraint
Mono.Cecil.GenericParamAttributes.DefaultConstructorConstrait
Other than that, they match perfectly.
Sorry to bother you about that...
Enjoy,
---
Matej
More information about the Mono-devel-list
mailing list