Skip to content

What’s New in C# 2.0 to C# 5.0

28 Mar, 12

Below is compiled list of new features introduced in C# from version 2.0 to C# 5.0

      Features added

      Keywords added

C# 2.0
  1. Generics
  2. Partial types
  3. Anonymous methods
  4. Iterators
  5. Nullable types
  6. Private setters (properties)
  7. Method group conversions (delegates)
  1. get
  2. partial
  3. set
  4. value
  5. where
  6. yield
C# 3.0
  1. Implicitly typed local variables
  2. Object and collection initializers
  3. Auto-Implemented
  4. properties
  5. Anonymous types
  6. Extension methods
  7. Query expressions
  8. Lambda expressions
  9. Expression trees
  1. add
  2. from
  3. global
  4. group
  5. into
  6. join
  7. let
  8. orderby
  9. partial(method)
  10. remove
  11. select
  12. var
  13. where(query clause)
C# 4.0
  1. Dynamic binding
  2. Named and optional arguments
  3. Generic co- and contravariance
  1. alias
  2. ascending
  3. descending
  4. dynamic
  5. in (generic modifier)
  6. out (generic modifier)
C# 5.0
  1. Windows Runtime support
  2. Asynchronous methods
  3. Caller info attributes
  1. async
  2. await

From → C Sharp

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: