A solution with various projects that explain techniques related to the C# course on NHL-Stenden Hogeschool the Netherlands.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. This code is for educational purposes only.
- Visual studio 2019
- .NET Core 3.1
- .NET Framework 4.7.2
The following steps will get you up and runnning with the example project:
- Clone the repository with your favourite GIT front-end or CLI.
git clone https://github.com/Schmitzenbergh/CsharpExamples.git
- Open the "CsharpExamples" folder and load the "CsharpExamples.sln" solution file.
- From the solution explorer in Visual Studio, unfold the desired project example OR start a project.
In the end you should have a multitude of projects containing one or more examples regarding the discussed C# topics.
The following examples are available:
- Asynchronous progamming with tasks
- Delegates and how to use them
- Object Oriented Programming
- Inheritance, Polymorphism and interfaces/abstract classes
- The LinkedList datastructure (in a basic form)
- Copy by reference and value
- Databinding
- Basic Windows Form
- Basci Windows Service and Installer
We highly recommend every student to contribute examples or improvements to this repository. If you wish to do so, fork and clone the repository and add your changes in a new branch. Then make a pull request explaining what your contribution is. The website OSSWatch has a nice common workflow that you could use. A common workflow for submitting a pull request with GitHub would look like this:
- Create/Log in to your GitHub account
- Go to the page for the code respository you want to contribute to (the “upstream”)
- “Fork” the repository (this creates a clone to your GitHub account)
- Create a local clone of your fork with git clone
- Create a local branch for your changes
- Make your changes and commit them to your local branch with git commit, ensuring to include a descriptive commit message
- Push the branch to your GitHub fork using git push
- Go to the page for the upstream repository go to the pull requests tab
- Click the “New Pull Request” Button
- Select the branch you want to submit, and write a summary of what your change explaining what it is intended to do and how it is implemented
- OSSWAtch for their workflow for GIT pull requests.
- SamKlop for extending the EventExample with custom Eventargs.