AddCapturedVariable() public method

public AddCapturedVariable ( string name, System.TypeSpec type ) : Field
name string
type System.TypeSpec
return Field
Example #1
0
		protected HoistedVariable (AnonymousMethodStorey storey, string name, TypeSpec type)
			: this (storey, storey.AddCapturedVariable (name, type))
		{
		}
Example #2
0
		protected HoistedVariable (AnonymousMethodStorey storey, string name, Type type)
		{
			this.storey = storey;

			this.field = storey.AddCapturedVariable (name, type);
		}