AddCapturedVariable() public method

public AddCapturedVariable ( string name, System.TypeSpec type ) : Field
name string
type System.TypeSpec
return Field
示例#1
0
文件: anonymous.cs 项目: rabink/mono
		protected HoistedVariable (AnonymousMethodStorey storey, string name, TypeSpec type)
			: this (storey, storey.AddCapturedVariable (name, type))
		{
		}
示例#2
0
		protected HoistedVariable (AnonymousMethodStorey storey, string name, Type type)
		{
			this.storey = storey;

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