GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ranbims/CSharp-Feature-Example: A collection of CSharp examples for different features organized by version.

BranchesTags
Open more actions menu

Latest commit

 

History

72 Commits
72 Commits

Folders and files

NameName
Last commit message
Last commit date
Ver1.0
Ver1.0
 
 
Ver10.0
Ver10.0
 
 
Ver2.0
Ver2.0
 
 
Ver3.0
Ver3.0
 
 
Ver4.0
Ver4.0
 
 
Ver5.0
Ver5.0
 
 
Ver6.0
Ver6.0
 
 
Ver7.0
Ver7.0
 
 
Ver7.1
Ver7.1
 
 
Ver7.3
Ver7.3
 
 
Ver8.0
Ver8.0
 
 
Ver9.0
Ver9.0
 
 
.gitignore
.gitignore
 
 
CSharp-Feature-Example.sln
CSharp-Feature-Example.sln
 
 
README.md
README.md
 
 

Repository files navigation

CSharp Feature Example

This is a repo that shows C# code examples of different features. These features are orgnized by versions of C#. From this, you could get more familiar with C# version history. And you can know more about how this language envolved in the past years.

Version 1.0

  • Classes
  • Structs
  • Interfaces
  • Delegates
  • Events
  • Attributes

Version 2.0

  • Nullable value types
  • Partial types
  • Generics
  • Iterators
  • Covariance and Contravariance

Version 3.0

  • Anonymous types
  • Auto implemented properties
  • Extension Methods
  • Implicitly typed local variables
  • Lambda
  • LINQ
  • Object and collection initializers
  • Partial methods
  • Expression Trees (To do)

Version 4.0

  • Dynamic types
  • Generic covariant and contra variant
  • Named arguments
  • Optional arguments
  • Embedded interop types (Todo)

Version 5.0

  • Asynchronous members
  • Caller Info Attributes

Version 6.0

  • Static imports
  • Exception filters
  • Auto-property initializers
  • Expression bodied members
  • Null propagator
  • String interpolation
  • nameof operator
  • Index initializers

Version 7.0

  • Out variables
  • Tuples and Discards
  • Deconstruct
  • Pattern matching
  • Local functions
  • More expression bodied members
  • Ref locals and resturns
  • The throw expression

Version 7.1

  • Async main
  • Default literal expressions
  • Pattern matching for generic types

Version 7.3

  • Unmanaged constraints
  • Tuple compare

Version 8.0

  • Default interface methods
  • Enhanced pattern matching(Todo)
  • Using Declarations
  • Static local functions
  • Asynchronous streams
  • Indices and ranges
  • Null-coalescing assignment
  • DisposeAsync (Todo)

Version 9.0 (It looks more like Python from this version.)

  • Top level statements
  • Record types
  • Init only setters
  • Pattern matching enhancements
  • Enhanced new expressions
  • Support for code generators (Todo)

Version 10.0

  • Global using directives
  • File scoped namespaces
  • Lambda expression improvements

About

A collection of CSharp examples for different features organized by version.

Topics

csharpcsharp-codecsharp-examplescsharp-historycsharp-version

Resources

Readme
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.