Small update
authorMiguel de Icaza <miguel@gnome.org>
Thu, 4 Sep 2008 07:19:18 +0000 (07:19 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Thu, 4 Sep 2008 07:19:18 +0000 (07:19 -0000)
svn path=/trunk/mono/; revision=112251

man/csharp.1

index cebdd027749c3bb8c05cc24372124a9ca3bac246..6466bfe060085a0d1389e3b748ab72e71ffdf12d 100644 (file)
@@ -87,6 +87,19 @@ csharp> csharp> a.Name;
 csharp>
 .fi
 .PP
+A few datatypes are handled specially by the C# interactive shell like
+arrays, System.Collections.Hashtable and are rendered specially
+instead of just using ToString ():
+.PP
+.nf
+csharp> var pages = new Hashtable () { 
+      >  { "Mono",    "http://www.mono-project.com/" },
+      >  { "Linux",   "http://kernel.org" } };
+csharp> pages;
+{{ "Mono", "http://www.mono-project.com/" }, { "Linux", "http://kernel.org" }}
+.fi
+.PP
+.PP
 It is possible to use LINQ directly in the C# interactive shell since
 the System.Linq namespace has been imported at startup.   The
 following sample gets a list of all the files that have not been