Ejemplo n.º 1
0
 public bool IsDirectChildOf(CSharpType methodDeclaringType)
 {
     return(BaseTypeRelationships.Any(r => r.BaseType == methodDeclaringType));
 }
Ejemplo n.º 2
0
 public IInheritanceRelationship GetImmediateParent(CSharpType targetType)
 {
     return(BaseTypeRelationships.First(r => r.BaseType == targetType || r.BaseType.IsChildOf(targetType)));
 }
Ejemplo n.º 3
0
 public bool IsChildOf(CSharpType targetType)
 {
     return(BaseTypeRelationships.Any(r => r.BaseType == targetType || r.BaseType.IsChildOf(targetType)));
 }