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); }
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); }
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); }
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); }
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); }
public bool Matches(MemberReference member) { MethodReference methodRef = member as MethodReference; if (methodRef != null) { if (typeKey.Matches(methodRef.DeclaringType)) { return(MethodMatch(Method, methodRef)); } } return(false); }