[Mono-list] Can someone check this for me? Not sure if it's a bug

Paul paulf.johnson@ukonline.co.uk
22 Apr 2003 00:11:37 +0100


Before I submit this, can someone please check if it is a bug or not.
Basically, I can't generate an XML document when I compile the below
source with mcs /doc:




using System;

namespace CSharpProgRef
  /// <remarks>
  /// The DocCommentDemo class shows document comments
  /// in action.
  /// </remarks>

  public class DocDocumentDemo
    /// <summary>
    /// The Main() method simply calls the GetAirDensity()
    /// method and prints out the result.
    /// </summary>
    public static void Main()
       Console.WriteLine("density is {0}", GetAirDensity(101325.0,

    /// <summary>
    /// The GetAirDensity() method computes and returns the
    /// density of air based on its temperatore and pressure.
    /// The molecular weight of air is 0.02885 kg mol-1.
    /// The <paramref name="p"/> parameter is the pressure
    /// </summary>
    /// <param name="p"> pressure is N m-2 </param>
    /// <param name="T"> temperature is in K </param>
    /// <returns> density in kg m-3</returns>
    /// <permission cref="System.Security.PermissionSet">public

    public static double GetAirDensity(double p, double T)
       return p * 0.02885 / (8.3145 * T);

  /// <include file = 'species.txt'

  class N2
     string name;
     public N2(string str)
       name = str;



<SpeciesTags name = "N2">
<remarks> This is data for diatomic nitrogen </remarks>


If it is compiled with

mcs /doc:DocXML.xml docxml.cs

it gives

density is 1.17195317761955

but it should also generate an XML doc called DocXML.xml.

It doesn't.

Can someone check the above with mcs to see if it a bug?


It really does make a difference to be correct
But hey, Microsoft can't be wrong can they
It just doesn't make sense
Please don't top post