* Options.cs: Remove use of 'var' so that C# 2.0 can be used.
authorJonathan Pryor <jpryor@novell.com>
Wed, 9 Jun 2010 20:38:44 +0000 (20:38 -0000)
committerJonathan Pryor <jpryor@novell.com>
Wed, 9 Jun 2010 20:38:44 +0000 (20:38 -0000)
svn path=/trunk/mcs/; revision=158752

mcs/class/Mono.Options/Mono.Options/ChangeLog
mcs/class/Mono.Options/Mono.Options/Options.cs

index 8f8a5e26be1e1f22b5a83ef44dd6938d5a54cbac..a9b6be1b81d7257ed06a15ba653fcd32b6c7987a 100644 (file)
@@ -1,3 +1,7 @@
+2010-06-09  Jonathan Pryor  <jpryor@novell.com>
+
+       * Options.cs: Remove use of 'var' so that C# 2.0 can be used.
+
 2010-06-09  Jonathan Pryor  <jpryor@novell.com>
 
        * Options.cs: Fix RemoveItem() and SetItem() so that removing by index
index c467c94697572f0a195ae1bbc1ca238c2d88b57d..6c2df9aee9fdfedb05ac0f5aab2f45033ec9eba5 100644 (file)
@@ -172,7 +172,7 @@ namespace Mono.Options
                                yield return string.Empty;
                                yield break;
                        }
-                       using (var ewidths = widths.GetEnumerator ()) {
+                       using (IEnumerator<int> ewidths = widths.GetEnumerator ()) {
                                bool? hw = null;
                                int width = GetNextWidth (ewidths, int.MaxValue, ref hw);
                                int start = 0, end;