We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6008db8 commit 05c406dCopy full SHA for 05c406d
1 file changed
source/code/projects/GenericType/GenericType/Helper.cs
@@ -18,7 +18,9 @@ public static T[] Reverse<T>(T[] arrayP)
18
public static string Description<T>(T[] arrayP)
19
{
20
string returned = "";
21
- foreach (var element in arrayP)
+ // Both works:
22
+ // foreach (var element in arrayP)
23
+ foreach (T element in arrayP)
24
25
returned += element + " ";
26
}
0 commit comments