void add_block (int offset) { if (handlers != null) { int i = handlers.Length; ILExceptionBlock[] new_b = new ILExceptionBlock [i + 1]; System.Array.Copy (handlers, new_b, i); handlers = new_b; handlers [i].len = offset - handlers [i].start; } else { handlers = new ILExceptionBlock [1]; len = offset - start; } }
private void add_block(int offset) { if (this.handlers != null) { int num = this.handlers.Length; ILExceptionBlock[] destinationArray = new ILExceptionBlock[num + 1]; Array.Copy(this.handlers, destinationArray, num); this.handlers = destinationArray; this.handlers[num].len = offset - this.handlers[num].start; } else { this.handlers = new ILExceptionBlock[1]; this.len = offset - this.start; } }