Exemple #1
0
        private object FindInfo(object Owner, string s)
        {
            object obj1 = null;

            if (Owner is Type)
            {
                return(((Type)Owner).GetMember(s));
            }
            if (Owner is IMethodInfo)
            {
                IMethodInfo info1 = (IMethodInfo)Owner;
                return(info1.FindByName(s, this.CaseSensitive));
            }
            if (Owner is ISyntaxInfo)
            {
                obj1 = ((ISyntaxInfo)Owner).FindByName(s, this.CaseSensitive);
            }
            return(obj1);
        }