I have the following attribute:
[AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false,
Inherited = true)]
[Serializable]
public sealed class NotNullAttribute : Attribute
{
}
that I use on a method in a class:
public string Combine([NotNull]string x, [NotNull]int fun,
[NotNull]object whacky, string y)
{
return x + " : " + fun.ToString("x") + " : " + whacky.ToString() +
" : " + y;
}
If I get the MethodDefinition for this method, none of the
CustomAttributes property for the expected ParameterDefinition objects
contain the NotNull attribute. I can load the assembly in Reflector
and it shows it just fine - using the System.Reflection API shows it
as well.
Is this something that is not supported (yet) in Cecil 0.6? Or am I
missing something?
Thanks,
Jason
--~--~---------~--~----~------------~-------~--~----~
--
mono-cecil
-~----------~----~----~----~------~----~------~--~---