public StaticNode( int LowNum, int HighNum ) { if (HighNum<LowNum) throw new FormatException("HighNum must be <= LowNum"); Value = siValue++; iType = 0; int Half = (HighNum - LowNum) / 2; SmallNode = new DynamoNode( LowNum, (LowNum + Half), (siValue + 100000) ); LargeNode = new DynamoNode( ( LowNum + Half ), HighNum, (siValue + 100001) ); }
public StaticNode(int LowNum, int HighNum) { if (HighNum < LowNum) { throw new FormatException("HighNum must be <= LowNum"); } Value = siValue++; iType = 0; int Half = (HighNum - LowNum) / 2; SmallNode = new DynamoNode(LowNum, (LowNum + Half), (siValue + 100000)); LargeNode = new DynamoNode((LowNum + Half), HighNum, (siValue + 100001)); }