[Mono-docs-list] Please add to monodoc.

Roberto Jimeno jimeno@servidor.unam.mx
26 Jan 2004 00:22:57 -0600


--=-l8XUSWBpmnYy/tPgSrtF
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hello all.

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

TIA

--=-l8XUSWBpmnYy/tPgSrtF
Content-Disposition: attachment; filename=CS0506
Content-Type: text/plain; name=CS0506; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<?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>

--=-l8XUSWBpmnYy/tPgSrtF--