Hello all.

        Would you please include this into the next release of monodoc?

TIA
<?xml version="1.0" encoding="iso-8859-1"?>
<ErrorDocumentation xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
  <ErrorName>CS0506</ErrorName>
  <Examples>
    <string>

// cs0506.cs(5) error CS0506: `mObject.Equals': cannot override inherited member 
`Object.Equals' because it is not virtual, abstract or override
// Compilation failed: 1 error(s), 0 warnings


using System;
 
class mObject
{
  public override bool Equals(Object oLeft, Object oRight)
  {
    return (System.Object.Equals(oLeft,oRight));
  }
}
 
class principal
{
  static void Main()
  {
    mObject a = new mObject();
    mObject b = new mObject();  // different objects
    // mObject b = a;           // same object
    if(a.Equals(b)) {
      Console.WriteLine("The objects are the same.");
    } else {
      Console.WriteLine("The objects are not the same.");
    }
  }
}

    </string>
  </Examples>
</ErrorDocumentation>

Reply via email to