csc bug ?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Lloyd Dupont

    #1

    csc bug ?

    I have a class class FileMakerParame ter

    I also create the following subclass of ArrayList
    public sealed class FileMakerParame terCollection : ArrayList,
    IDataParameterC ollection
    {
    public FileMakerParame ter 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 ?


  • Michael Culley

    #2
    Re: csc bug ?

    "Lloyd Dupont" <lloyd@galador. net> wrote in message
    news:u0WckMLUDH A.2420@TK2MSFTN GP10.phx.gbl...[color=blue]
    > I have a class class FileMakerParame ter[/color]

    Doesn't it give you a warning saying that the new keyword is recommended?

    --
    Michael Culley


    Comment

    • Lloyd Dupont

      #3
      Re: csc bug ?

      ohh...
      yep I have a warning.
      I believed it should be an error, my mistake, sorry ...

      "Michael Culley" <mculley@NOSPAM optushome.com.a u> wrote in message
      news:%23pf$tvLU DHA.1664@TK2MSF TNGP11.phx.gbl. ..[color=blue]
      > "Lloyd Dupont" <lloyd@galador. net> wrote in message
      > news:u0WckMLUDH A.2420@TK2MSFTN GP10.phx.gbl...[color=green]
      > > I have a class class FileMakerParame ter[/color]
      >
      > Doesn't it give you a warning saying that the new keyword is recommended?
      >
      > --
      > Michael Culley
      >
      >[/color]


      Comment

      • Michael Culley

        #4
        Re: csc bug ?

        I believe you can change the options so warnings are treated as errors but I
        have never tried it.

        --
        Michael Culley


        "Lloyd Dupont" <lloyd@galador. net> wrote in message
        news:uWjLybMUDH A.2036@TK2MSFTN GP10.phx.gbl...[color=blue]
        > ohh...
        > yep I have a warning.
        > I believed it should be an error, my mistake, sorry ...
        >
        > "Michael Culley" <mculley@NOSPAM optushome.com.a u> wrote in message
        > news:%23pf$tvLU DHA.1664@TK2MSF TNGP11.phx.gbl. ..[color=green]
        > > "Lloyd Dupont" <lloyd@galador. net> wrote in message
        > > news:u0WckMLUDH A.2420@TK2MSFTN GP10.phx.gbl...[color=darkred]
        > > > I have a class class FileMakerParame ter[/color]
        > >
        > > Doesn't it give you a warning saying that the new keyword is[/color][/color]
        recommended?[color=blue][color=green]
        > >
        > > --
        > > Michael Culley
        > >
        > >[/color]
        >
        >[/color]


        Comment

        Working...