public static ITypeSignature GetElementType(this ITypeSignature typeSig, TypeElementCode type) { while (typeSig != null && typeSig.ElementCode != type) { typeSig = typeSig.ElementType; } return(typeSig); }
public TypeSignature GetElementType(TypeElementCode type) { var typeSig = this; while (typeSig != null && typeSig.ElementCode != type) { typeSig = typeSig.ElementType; } return(typeSig); }