Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Weird and The Wonderful
  4. System.Data.IDataParameterCollection.Item

System.Data.IDataParameterCollection.Item

Scheduled Pinned Locked Moved The Weird and The Wonderful
csharp
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    PIEBALDconsult
    wrote on last edited by
    #1

    This continues to irk me no end. Due to the lack of generics in .net V1, IDataParameterCollection.Item is of type object rather than IDataParameter, so I have to keep casting. :mad:

    You'll never get very far if all you do is follow instructions.

    D Z 2 Replies Last reply
    0
    • P PIEBALDconsult

      This continues to irk me no end. Due to the lack of generics in .net V1, IDataParameterCollection.Item is of type object rather than IDataParameter, so I have to keep casting. :mad:

      You'll never get very far if all you do is follow instructions.

      D Offline
      D Offline
      dan sh
      wrote on last edited by
      #2

      Many still create their own collections the same way. I have no clue why.

      My CP workspace: Incredibly trivial and probably useless code samples[^]

      J 1 Reply Last reply
      0
      • D dan sh

        Many still create their own collections the same way. I have no clue why.

        My CP workspace: Incredibly trivial and probably useless code samples[^]

        J Offline
        J Offline
        johannesnestler
        wrote on last edited by
        #3

        I know... I had to add a "Don't use the obsolete collection pattern" chapter to the coding style guide for my team... :doh:

        1 Reply Last reply
        0
        • P PIEBALDconsult

          This continues to irk me no end. Due to the lack of generics in .net V1, IDataParameterCollection.Item is of type object rather than IDataParameter, so I have to keep casting. :mad:

          You'll never get very far if all you do is follow instructions.

          Z Offline
          Z Offline
          ZurdoDev
          wrote on last edited by
          #4

          PIEBALDconsult wrote:

          This continues to irk me no end.
          Due to the lack of generics in .net V1

          It did for me too. That is until 2005 when .Net 2.0 came out. Just saying. :-\

          There are only 10 types of people in the world, those who understand binary and those who don't.

          P 1 Reply Last reply
          0
          • Z ZurdoDev

            PIEBALDconsult wrote:

            This continues to irk me no end.
            Due to the lack of generics in .net V1

            It did for me too. That is until 2005 when .Net 2.0 came out. Just saying. :-\

            There are only 10 types of people in the world, those who understand binary and those who don't.

            P Offline
            P Offline
            PIEBALDconsult
            wrote on last edited by
            #5

            Yes, but they didn't add a generic alternative to the collection so I still have to cast even today.

            You'll never get very far if all you do is follow instructions.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups