| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent bb3f9ce commit f412d49
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,18 @@ | |||
| 1 | + using System; | ||
| 2 | + | ||
| 3 | + public class Example : Attribute | ||
| 4 | + { | ||
| 5 | + public Example(int x) { } | ||
| 6 | + } | ||
| 7 | + | ||
| 8 | + public class LambdaAttributes | ||
| 9 | + { | ||
| 10 | + | ||
| 11 | + public void M1() | ||
| 12 | + { | ||
| 13 | + // Examples needed for attributes. | ||
| 14 | + var f7 = ([Example(1)] int x) => x.ToString(); // Parameter attribute | ||
| 15 | + var f8 =[Example(2)] (int x) => x.ToString(); // Lambda attribute | ||
| 16 | + var f9 =[return: Example(3)] (int x) => x.ToString(); // Return value attribute | ||
| 17 | + } | ||
| 18 | + } | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,11 +5,17 @@ lambdaDeclaration | |||
| 5 | 5 | | Func<bool, object> | Lambda.cs:17:13:17:14 | f6 | Lambda.cs:17:18:17:45 | (...) => ... | | |
| 6 | 6 | | Func<int, string> | Lambda.cs:8:27:8:28 | f1 | Lambda.cs:8:32:8:54 | (...) => ... | | |
| 7 | 7 | | Func<int, string> | Lambda.cs:9:13:9:14 | f2 | Lambda.cs:9:18:9:40 | (...) => ... | | |
| 8 | + | Func<int, string> | LambdaAttributes.cs:14:13:14:14 | f7 | LambdaAttributes.cs:14:18:14:53 | (...) => ... | | ||
| 9 | + | Func<int, string> | LambdaAttributes.cs:15:13:15:14 | f8 | LambdaAttributes.cs:15:17:15:52 | (...) => ... | | ||
| 10 | + | Func<int, string> | LambdaAttributes.cs:16:13:16:14 | f9 | LambdaAttributes.cs:16:17:16:60 | (...) => ... | | ||
| 8 | 11 | lambdaDeclarationNatural | |
| 9 | 12 | | Func<bool, int> | Lambda.cs:16:13:16:14 | f5 | Lambda.cs:16:18:16:42 | (...) => ... | | |
| 10 | 13 | | Func<bool, object> | Lambda.cs:12:13:12:14 | f3 | Lambda.cs:12:18:12:47 | (...) => ... | | |
| 11 | 14 | | Func<bool, object> | Lambda.cs:17:13:17:14 | f6 | Lambda.cs:17:18:17:45 | (...) => ... | | |
| 12 | 15 | | Func<int, string> | Lambda.cs:9:13:9:14 | f2 | Lambda.cs:9:18:9:40 | (...) => ... | | |
| 16 | + | Func<int, string> | LambdaAttributes.cs:14:13:14:14 | f7 | LambdaAttributes.cs:14:18:14:53 | (...) => ... | | ||
| 17 | + | Func<int, string> | LambdaAttributes.cs:15:13:15:14 | f8 | LambdaAttributes.cs:15:17:15:52 | (...) => ... | | ||
| 18 | + | Func<int, string> | LambdaAttributes.cs:16:13:16:14 | f9 | LambdaAttributes.cs:16:17:16:60 | (...) => ... | | ||
| 13 | 19 | lambdaDeclarationExplicitReturnType | |
| 14 | 20 | | Func<bool, int> | int | int | Lambda.cs:16:13:16:14 | f5 | Lambda.cs:16:18:16:42 | (...) => ... | | |
| 15 | 21 | | Func<bool, object> | object | object | Lambda.cs:12:13:12:14 | f3 | Lambda.cs:12:18:12:47 | (...) => ... | | |
| Back | FazBrowse Home | New Git URL |
0 commit comments