public int GetPointerCount(bool isPointerOrVariable = false) { int c = 0; ELEMENT p = this; for (int i = 0; i < 100; i++) { if (p == null || p.isNONE()) { break; } if (isPointerOrVariable) { if (p.isPOINTER() || p.isVARIABLE()) { c++; } } else { c++; } p = p.GetPointerNext(); } return(c); }
public ELEMENT GetPointerNext(int n) { ELEMENT p = this; for (int i = 0; i < n; i++) { if (p == null || p.isNONE()) { return(null); } p = p.GetPointerNext(); } return(p); }