Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这是我的代码,它Not all code paths return a value在 lambda 表达式中给了我错误。
Not all code paths return a value
skdForm.onSentinelKeyWrite += (s) => { releaseSentinelData = s; };
任何机构可以帮助我吗?
如您所见,delSentinelKeyWrite(string data)必须返回一个字符串:
delSentinelKeyWrite(string data)
skdForm.onSentinelKeyWrite += (s) => { releaseSentinelData = s; return s; };