public CSASMRange(CSASMIndexer start, CSASMIndexer end) { if (start.offset < end.offset) { throw new ArithmeticException("Range end indexer offset cannot be less than range start indexer offset"); } this.start = null; startIndexer = start; this.end = null; endIndexer = end; }
public CSASMRange(int start, CSASMIndexer end) { if (start < 0) { throw new ArithmeticException("Range start value cannot be less than zero when using an end indexer"); } this.start = start; startIndexer = null; this.end = null; endIndexer = end; }