On Sat, Aug 21, 2010 at 5:57 AM, Wicky <[email protected]> wrote:
> EnumByte is defined in another assembly, the parameter types for above
> two attributes are System.Object and System.String, so they can both
> be resolved.
>
> Any idea?

You can always try:

static bool IsResolvable (CustomAttribute attribute)
{
        try {
                return attribute.Constructor.Parameters.Count ==
attribute.ConstructorArguments.Count;
        } catch (FileNotFoundException) {
                return false;
        }
}

-- 
Jb EvainĀ  <[email protected]>

-- 
--
mono-cecil

Reply via email to