Mono.Cecil.Cil.InstructionCollection.OnRemove C# (CSharp) Method

OnRemove() protected method

protected OnRemove ( item, int index ) : void
index int
return void
		protected override void OnRemove (Instruction item, int index)
		{
			var previous = item.previous;
			if (previous != null)
				previous.next = item.next;

			var next = item.next;
			if (next != null)
				next.previous = item.previous;

			item.previous = null;
			item.next = null;
		}
	}