Ejemplo 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);
        }
Ejemplo 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);
        }
Ejemplo 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);
        }
Ejemplo 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);
        }
Ejemplo 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);
        }
Ejemplo 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);
        }