public override string ToString() { if (NestingParent != null) { return($"{Name} in {NestingParent.ToString()}"); } return($"{Name}"); }
private bool IsNestedAncestor(TypeBase type) { if (NestingParent != null && NestingParent.IsNestedAncestor(type)) { return(true); } return(type == this); }
public bool IsNestedIn(DatabaseObject databaseObject) { if (NestingParent == null) { return(false); } if (NestingParent != databaseObject) { return(NestingParent.IsNestedIn(databaseObject)); } return(true); }