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

            return(typeSig);
        }
예제 #2
0
        public TypeSignature GetElementType(TypeElementCode type)
        {
            var typeSig = this;

            while (typeSig != null && typeSig.ElementCode != type)
            {
                typeSig = typeSig.ElementType;
            }

            return(typeSig);
        }