csc bug ?

  • Thread starter Thread starter Lloyd Dupont
  • Start date Start date
L

Lloyd Dupont

I have a class class FileMakerParameter

I also create the following subclass of ArrayList
public sealed class FileMakerParameterCollection : ArrayList,
IDataParameterCollection
{
public FileMakerParameter this[int index]
{
get { /* return something */ }
set { /* something */ }
}
// .. other metods
}

and it compile fine. isn't an error ? isn't new or override mandatory ?
beside I change the signature (return type) of the this[int] accessor, I
should have an error message, shouldn't I ?
 
ohh...
yep I have a warning.
I believed it should be an error, my mistake, sorry ...
 
I believe you can change the options so warnings are treated as errors but I
have never tried it.

--
Michael Culley


Lloyd Dupont said:
ohh...
yep I have a warning.
I believed it should be an error, my mistake, sorry ...
 
Back
Top