Esempio n. 1
0
        public virtual bool Matches(MemberReference member)
        {
            FieldReference fieldRef = member as FieldReference;

            if (fieldRef != null)
            {
                if (typeKey.Matches(fieldRef.DeclaringType))
                {
                    return(type == fieldRef.FieldType.FullName && name == fieldRef.Name);
                }
            }

            return(false);
        }
Esempio n. 2
0
        public virtual bool Matches(MemberReference member)
        {
            PropertyReference propRef = member as PropertyReference;

            if (propRef != null)
            {
                if (TypeKey.Matches(propRef.DeclaringType))
                {
                    return(Type == propRef.PropertyType.FullName && Name == propRef.Name);
                }
            }

            return(false);
        }
Esempio n. 3
0
        public override bool Matches(MemberReference member)
        {
            MethodReference methodRef = member as MethodReference;

            if (methodRef != null)
            {
                if (typeKey.Matches(methodRef.DeclaringType))
                {
                    return(base.Matches(member));
                }
            }

            return(false);
        }
Esempio n. 4
0
        public virtual bool Matches(MemberReference member)
        {
            FieldReference fieldRef = member as FieldReference;

            if (fieldRef != null)
            {
                if (Name == fieldRef.Name && TypeKey.Matches(fieldRef.DeclaringType))
                {
                    return(MethodKey.TypeMatch(Type, fieldRef.FieldType));
                }
            }

            return(false);
        }
Esempio n. 5
0
        public virtual bool Matches(MemberReference member)
        {
            EventReference evtRef = member as EventReference;

            if (evtRef != null)
            {
                if (TypeKey.Matches(evtRef.DeclaringType))
                {
                    return(Type == evtRef.EventType.FullName && Name == evtRef.Name);
                }
            }

            return(false);
        }
Esempio n. 6
0
        public bool Matches(MemberReference member)
        {
            MethodReference methodRef = member as MethodReference;

            if (methodRef != null)
            {
                if (typeKey.Matches(methodRef.DeclaringType))
                {
                    return(MethodMatch(Method, methodRef));
                }
            }

            return(false);
        }