![]() |
От: |
desco
|
http://v2matveev.blogspot.com |
Дата: | 25.06.08 11:13 | ||
Оценка: |
SAS>delegate(string text) { return text.Length; };
SAS>(string text) => text.Length;
SAS>
SAS>object obj1 = delegate(string text) { return text.Length; };
SAS>object obj2 = (string text) => text.Length;
SAS>
соответственно, присваивания недопустимы, потому что неизвестен конкретный тип делегатаAn anonymous-method-expression or lambda-expression is classified as an anonymous function (§7.14). The expression does not have a type but can be implicitly converted to a compatible delegate type or expression tree type.