Created
December 16, 2011 18:53
-
-
Save tachiken/1487386 to your computer and use it in GitHub Desktop.
CS1628対応?
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; | |
}; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment