public bool isParent(COOPAbstract type) { if (this == type) { return(true); } if (parent == null) { return(false); } if (type == null) { return(false); } return(parent.isParent(type)); }
public COOPAbstract(string name, COOPAbstract parent) : base(name) { this.parent = parent; fields = new Dictionary <string, Field>(); }