Results 1 to 3 of 3

Thread: Generic Types in C#

  1. #1
    Brownchris is offline Senior Member
    Join Date
    Dec 2009
    Posts
    331
    Rep Power
    3

    Default Generic Types in C#

    I am new in programming world. Right now I am learning C# programming language, I have one query related to generic type in C# .I am not able to understand the 'Generic Types' of C#.I want detailed information about 'Generic Types' in C#. Any suggestion would be highly appreciated.

  2. #2
    Millerjames is offline Senior Member
    Join Date
    Dec 2009
    Posts
    331
    Rep Power
    3

    Default

    The type will be decided using this method or class. Actually, for every different type used, the compiler will make a new version of the method or class. Generic types are utilized to perform the similar treatment on different types of data. It is probable to use more generic types for a method or class.

  3. #3
    Davisricky is offline Senior Member
    Join Date
    Dec 2009
    Posts
    331
    Rep Power
    3

    Default

    Generic types are notorious by name, and individual between the signs < and > placed just after the method name or class. Consider a static method returning the maximum value between two values accepted as a parameters. The compiler determine the type used for TQ from the values of arguments:

Similar Threads

  1. Generic.dx! osw Virus Issue
    By HallMiller in forum General Internet Terms
    Replies: 2
    Last Post: 03-17-2010, 01:43 PM
  2. Multiple generic types
    By Harald Uwe in forum Programming
    Replies: 2
    Last Post: 03-11-2010, 12:52 PM
  3. Generic PWS.y! brn deletion difficulty
    By ScottWright in forum Networking Jargons
    Replies: 1
    Last Post: 01-22-2010, 02:05 PM
  4. How to Get Rid of a Generic Trojan
    By EvansMitchell in forum Software Jargons
    Replies: 0
    Last Post: 01-02-2010, 02:39 PM
  5. Generic 1GB DDR533 Memory
    By iankloap in forum Motherboards & Memory
    Replies: 0
    Last Post: 07-25-2008, 12:58 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
SEO by SubmitEdge

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48