Example #1
0
		/// <summary>
		/// Emits IL instructions that &quot;unset&quot; a static field.
		/// </summary>
		/// <remarks>
		/// <para>
		/// Nothing is expected on the evaluation stack. Nothing is left on the evaluation stack.
		/// </para>
		/// <para>
		/// Call to the <see cref="Operators.UnsetStaticProperty"/> error throwing operator is always emitted because static
		/// fields cannot be unset.
		/// </para>
		/// </remarks>
		internal override void EmitUnset(CodeGenerator codeGenerator)
		{
			codeGenerator.EmitUnsetStaticPropertyOperator(type, null, fieldNameExpr);
		}