more docs
authorMiguel de Icaza <miguel@gnome.org>
Mon, 10 Nov 2008 01:51:05 +0000 (01:51 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Mon, 10 Nov 2008 01:51:05 +0000 (01:51 -0000)
svn path=/trunk/mcs/; revision=118355

mcs/tools/csharplib/en/Mono.CSharp/Evaluator.xml

index 5c0727a7f9f4f902ed9ec63032e98a0bb5d4e4b5..45d00a608ae37dc9682dd709f689477a7cace084 100644 (file)
             </summary>
         <returns></returns>
         <remarks>
+         <para>
             Compiles the input string as a C# expression or
-            statement, unlike the Evaluate method, the
+            statement.
+         </para>
+         <para>
+           Unlike the Evaluate method, the
             resulting delegate can be invoked multiple times
             without incurring in the compilation overhead.
+         </para>
+         <para>
             This method can only deal with fully formed input
             strings and does not provide a completion mechanism.
             If you must deal with partial input (for example for
             interactive use) use the other overload.
+         </para>
+         <para>
             On success, a delegate is returned that can be used
             to invoke the method.
-            </remarks>
+         </remarks>
       </Docs>
     </Member>
     <Member MemberName="Compile">
          </para>
          <para>
            <example>
+             <code lang="C#">
              // First setup the active using statements:
              Evaluator.Run ("using System;");
 
 
              // We know the result is an IEnumerator, cast it.
              IEnumerator even = (IEnumerator) Evaluator.Evaluate ("from x in numbers where (x % 2) == 0 select x");
+             </code>
            </example>
          </para>
        </remarks>
             statement.  If the input string is an expression
             the result will be stored in the result variable
             and the result_set variable will be set to true.
+         </para>
+         <para>
             It is necessary to use the result/result_set
             pair to identify when a result was set (for
             example, execution of user-provided input can be
          <para>
             If the return value of this function is null,
             this indicates that the parsing was complete.
+         </para>
+         <para>
             If the return value is a string, it indicates
             that the input is partial and that the user
             should provide an updated string.
          </para>
          <para>
            <example>
+             <code lang="C#">
              // First setup the active using statements:
              Evaluator.Run ("using System;");
 
              Evaluator.Run ("Console.WriteLine (\"Hello, World\");
+             </code>
            </example>
          </para>
         </remarks>