0

これは私のコードでNot all code paths return a value、ラムダ式でエラーが発生します。

skdForm.onSentinelKeyWrite += (s) =>
{
    releaseSentinelData = s;
};

どんな体でも私を助けてくれますか?

4

1 に答える 1

4

ご覧のとおりdelSentinelKeyWrite(string data)、文字列を返す必要があります。

skdForm.onSentinelKeyWrite += (s) =>
{
   releaseSentinelData = s;
   return s;
};
于 2013-07-02T08:12:32.277 に答える