public bool IsDirectChildOf(CSharpType methodDeclaringType)
 {
     return(BaseTypeRelationships.Any(r => r.BaseType == methodDeclaringType));
 }
 public IInheritanceRelationship GetImmediateParent(CSharpType targetType)
 {
     return(BaseTypeRelationships.First(r => r.BaseType == targetType || r.BaseType.IsChildOf(targetType)));
 }
 public bool IsChildOf(CSharpType targetType)
 {
     return(BaseTypeRelationships.Any(r => r.BaseType == targetType || r.BaseType.IsChildOf(targetType)));
 }