ah sure sorry I missed that.
public static class CollectionGenericParameterExtensions
{
public static int GetIndexByName(this Collection<GenericParameter>
collection, string name)
{
for (int i = 0; i < collection.Count; i++)
{
if (collection[i].FullName == name) return i;
}
return -1;
}
}
On Thu, Dec 2, 2010 at 2:55 PM, Jb Evain <[email protected]> wrote:
> On Thu, Dec 2, 2010 at 8:53 PM, Greg Young <[email protected]>
> wrote:
> >
>
> ((GenericInstanceType)f.DeclaringType).ElementType.GenericParameters.GetIndexByName(
>
> Could you post GetIndexByName too?
>
> --
> --
> mono-cecil
--
Les erreurs de grammaire et de syntaxe ont été incluses pour m'assurer de
votre attention
--
--
mono-cecil