This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static Action GenerateHandler(ref MyClass arg1) | |
{ | |
return delegate() | |
{ | |
// This make compile error CS1628 | |
// ref または out パラメータ 'arg1' は、匿名メソッド、ラムダ式、またはクエリ式の内部では使用できません | |
arg1.Property1 = false; | |
arg1 = arg1.GetNeighbour() ?? arg1; | |
arg1.Property1 = true; | |
}; |