/// <summary> /// Should we walk through the member for all children? /// </summary> private static bool ShouldWalk(IReachableContext context, MemberReference member) { TypeReference typeRef = member as TypeReference; if (typeRef == null) { return true; } if (typeRef is GenericParameter) { return true; } if (typeRef is TypeSpecification) { return true; } return context.Contains(typeRef); }
/// <summary> /// Should we walk through the member for all children? /// </summary> private static bool ShouldWalk(IReachableContext context, AbstractReference member) { var typeRef = member as TypeReference; if (typeRef == null) { return(true); } return(context.Contains(typeRef)); }
/// <summary> /// Should we walk through the member for all children? /// </summary> private static bool ShouldWalk(IReachableContext context, MemberReference member) { TypeReference typeRef = member as TypeReference; if (typeRef == null) { return(true); } if (typeRef is GenericParameter) { return(true); } if (typeRef is TypeSpecification) { return(true); } return(context.Contains(typeRef)); }
/// <summary> /// Should we walk through the member for all children? /// </summary> private static bool ShouldWalk(IReachableContext context, AbstractReference member) { var typeRef = member as TypeReference; if (typeRef == null) { return true; } return context.Contains(typeRef); }