/// <summary> /// Emits code that stores a value to this storage place. /// </summary> /// <param name="il">The <see cref="ILEmitter"/> to emit the code to.</param> public void EmitStore(ILEmitter il) { switch (holder) { case PlaceHolder.Local: il.Stloc(index); break; case PlaceHolder.Argument: il.Starg(index); break; case PlaceHolder.None: throw new InvalidOperationException(); } }