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. General Programming
  3. .NET (Core and Framework)
  4. Usage of generics in .net projects

Usage of generics in .net projects

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharpwcfperformance
6 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.
  • K Offline
    K Offline
    kalyan_vb
    wrote on last edited by
    #1

    Hi, Can any one tell where we can use generics to gain performance (except collections) in .net projects with WCF services. Thanks and Regards, Kalyan

    A L P 3 Replies Last reply
    0
    • K kalyan_vb

      Hi, Can any one tell where we can use generics to gain performance (except collections) in .net projects with WCF services. Thanks and Regards, Kalyan

      A Offline
      A Offline
      Abhinav S
      wrote on last edited by
      #2

      Implementing algorithms like a simple stack using generics have shown a gain in performance.

      1 Reply Last reply
      0
      • K kalyan_vb

        Hi, Can any one tell where we can use generics to gain performance (except collections) in .net projects with WCF services. Thanks and Regards, Kalyan

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Generic would always increase performance If you avoid using generics then you must need to either type cast or apply boxing and unboxing which ultimately degrades performance. To evaluate performance (To get idea about benefits of generics) http://csharpfeeds.com/post/1468/Use_Generics_to_improve_performance.aspx[^] Hope this will help!

        Jinal Desai - LIVE Experience is mother of sage....

        K 1 Reply Last reply
        0
        • K kalyan_vb

          Hi, Can any one tell where we can use generics to gain performance (except collections) in .net projects with WCF services. Thanks and Regards, Kalyan

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

          Nope.

          1 Reply Last reply
          0
          • L Lost User

            Generic would always increase performance If you avoid using generics then you must need to either type cast or apply boxing and unboxing which ultimately degrades performance. To evaluate performance (To get idea about benefits of generics) http://csharpfeeds.com/post/1468/Use_Generics_to_improve_performance.aspx[^] Hope this will help!

            Jinal Desai - LIVE Experience is mother of sage....

            K Offline
            K Offline
            kalyan_vb
            wrote on last edited by
            #5

            Is there any other uses other than mentioned above.

            L 1 Reply Last reply
            0
            • K kalyan_vb

              Is there any other uses other than mentioned above.

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              No man. That is why generics are used.

              Jinal Desai - LIVE Experience is mother of sage....

              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