indexer

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

    #1

    indexer

    What is the difference between indexers in csharp and overloading [ ]
    operator ?

    thanx,


  • Joe

    #2
    Re: indexer


    "yufufi" <yufufi@hotmail .com> wrote in message
    news:OZJpaTJUDH A.2260@TK2MSFTN GP12.phx.gbl...[color=blue]
    > What is the difference between indexers in csharp and overloading [ ]
    > operator ?[/color]

    In C# you can't overload [], and the indexer is what you should use instead.

    Joe

    --
    Learn C# with step-by-step tutorials and practical examples. Start your first program, explore lists and parsing, and understand how .NET runs your code.



    Comment

    • Flare

      #3
      Re: indexer

      > > What is the difference between indexers in csharp and overloading [ ][color=blue][color=green]
      > > operator ?[/color]
      >
      > In C# you can't overload [], and the indexer is what you should use[/color]
      instead.

      But bottomline, pretty much the same---

      Regards
      Anders


      Comment

      Working...