Created
November 21, 2019 21:07
-
-
Save kironroy/75485a205fe33022b2966810cd444c56 to your computer and use it in GitHub Desktop.
C# backup 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
![c sharp logo](https://kironroy.github.io/c_sharp.svg) | |
--- | |
<a href="https://dev.to/kironroy"> | |
<img src="https://d2fltix0v2e0sb.cloudfront.net/dev-badge.svg" alt="Kiron Roy's DEV Profile" height="40" width="40"> | |
</a> | |
### Console Programs on [Repl.it](https://repl.it/) | |
* **_[C# Multiple Choice Quiz](https://repl.it/@kironroy/csharpquizmc)_** | |
* _[Music & Politics](https://repl.it/@kironroy/musicandpolitics)_ | |
* _[Nested If/Else](https://repl.it/@kironroy/nestedifstatement)_ | |
* _[Full names printed out](https://repl.it/@kironroy/fullnames)_ | |
* _[Loop through a list of first names](https://repl.it/@kironroy/loopingfirstnames)_ | |
* _[Methods DRY](https://repl.it/@kironroy/namemethods)_ | |
* _[Type conversion](https://repl.it/@kironroy/typeconvert)_ | |
* _[C# Quiz Basic](https://repl.it/@kironroy/chsarpbasicquiz)_ | |
* _[C# Quiz Do loop](https://repl.it/@kironroy/cSharpQuiz-1)_ | |
* _[Dream Team 1992](https://repl.it/@kironroy/DreamTeam1992)_ | |
* _[Dream Team 1992 Version 2](https://repl.it/@kironroy/DreamTeam1992v2)_ | |
* _[Redwoods](https://repl.it/@kironroy/redwoodsCsharp)_ | |
* _[Redwoods Version 2](https://repl.it/@kironroy/RedWoods2)_ | |
* _[United Kingdom Multidimensional Arrays](https://repl.it/@kironroy/multidimarray)_ | |
* _[Medical Future (dictionaries)](https://repl.it/@kironroy/dictionaries2)_ | |
* _[Inheritance & Interfaces](https://repl.it/@kironroy/inheritinterfaceproject)_ | |
* _[Events](https://repl.it/@kironroy/events)_ | |
* _[Cat model with extension methods](https://repl.it/@kironroy/personextensionmethods)_ | |
* _[Address Book](https://repl.it/@kironroy/addressbook)_ | |
* _[Battleship Project](https://repl.it/@kironroy/Battleship-Console-Application)_ | |
* _[Static Class Demo](https://repl.it/@kironroy/staticclassdemo)_ | |
* _[Instantiated Class Demo](https://repl.it/@kironroy/instantiatedclasses)_ | |
* _[Property Types](https://repl.it/@kironroy/propertytypes?language=csharp&folderId=)_ | |
* _[C# Quiz](https://repl.it/@kironroy/cSharpQuiz)_ | |
* _[C# Quiz methods](https://repl.it/@kironroy/csharpquizwithmethods?language=csharp&folderId=)_ | |
* _[Guest List](https://repl.it/@kironroy/guestlist)_ | |
* _[Trees Polymorphism](https://repl.it/@kironroy/ctrees)_ | |
* _[Image size](https://repl.it/@kironroy/imagesize)_ | |
* _[Time Keeper](https://repl.it/@kironroy/TimeKeeper)_ | |
* _[Post Likes](https://repl.it/@kironroy/postlikes)_ | |
* _[FizzBuzzes](https://repl.it/@kironroy/fizzbuzzes)_ | |
* _[Generics](https://repl.it/@kironroy/generics2)_ | |
* _[FizzBuzz Genric](https://repl.it/@kironroy/fizzbuzz2)_ | |
* _[Adventure Game](https://repl.it/@kironroy/adventuregame)_ | |
* _[Adventure Game Refactored](https://repl.it/@kironroy/adventuregame2)_ | |
* _[Number Guessing Game](https://repl.it/@kironroy/numberguessgame?language=csharp)_ | |
* _[Word Guessing Game](https://repl.it/@kironroy/wordguessinggame)_ | |
* _[Madlip](https://repl.it/@kironroy/madlip?language=csharp)_ | |
* _[Tip Calculator](https://repl.it/@kironroy/tipcalc)_ | |
--- | |
![github logo](https://kironroy.github.io/github.svg) | |
* [C# GitHubRepositories](https://github.com/kironroy?utf8=%E2%9C%93&tab=repositories&q=&type=&language=c%23) | |
* [Gists](https://gist.github.com/kironroy) | |
--- | |
### _ASP .NET Framework / .NET Core_ | |
* **[.NET Fiddle](https://dotnetfiddle.net/CsMvc)** | |
* [Introduction to ASP.NET MVC in C#: Basics, Advanced Topics, Tips, Tricks, Best Practices, and More](https://www.youtube.com/watch?v=phyV-OQNeRM) | |
* [Intro to Bootstrap in ASP.NET MVC and .NET Core](https://www.youtube.com/watch?v=vRqz_zUiJTw) | |
* [Get Started with ASP.NET Websites](https://www.asp.net/get-started/websites) | |
* [ASP.NET MVC Data Access in C# - The complete data path from database to display and back](https://www.youtube.com/watch?v=bIiEv__QNxw) | |
* [Razor Syntax](https://www.completecsharptutorial.com/razor-tutorial/) | |
* [RazorPractice Gist](https://gist.github.com/kironroy/638eaccf3f11caf4a64f3790b594242b) | |
* [Razor Practice on .NET Fiddle](https://dotnetfiddle.net/eLoHXw) | |
--- | |
### _Windows Forms_ | |
* [Visual Studio Winform Tic Tac Toe Tutorial Example (C#)](https://www.youtube.com/watch?v=p3gYVcggQOU) | |
* [Memory Game with Windows Forms! | Intro To C# Programming](https://www.youtube.com/watch?v=frDKP-A71W0) | |
* [Visual Studio WinForm Windows Calculator Tutorial Example (C#)](https://www.youtube.com/watch?v=Is1EHXFhEe4) | |
* [Chris Merritt](https://www.youtube.com/channel/UChKYo_FJBF1aMV7VVWXkO9A/videos) | |
--- | |
### _Windows Presentation Foundation_ | |
* [WPF UI Programming YouTube](https://www.youtube.com/playlist?list=PLrW43fNmjaQVYF4zgsD0oL9Iv6u23PI6M) | |
* [WPF snake game](https://www.wpf-tutorial.com/creating-game-snakewpf/introduction/) | |
* [Material Design instructions](https://www.youtube.com/watch?v=Cjuw4dbrqWs) | |
* [Material Design for XAML](http://materialdesigninxaml.net/) | |
--- | |
### Notes | |
**_Main Method_** = Is the entry point of the application. | |
It is a "quarter back method" it tells what the other methods should do (Console Apps) | |
**_Solution_** = is a container that holds different projects | |
**_Static Classes_** = one copy for the entire lifetime of the application. Storing data inside a static class is not a good idea, because it increases the application's memory footprint. They aren't **_instantiated_** | |
* Static means “associated with the class, not an instance”. | |
* Static member is always accessed by the class name, rather than the instance name, like Forest.Area. | |
* Static method cannot access non-static members. | |
* Static constructor is run once per type, not per instance. It is invoked before the type is instantiated or a static member is accessed. | |
[**_Instantiated Classes_**](https://repl.it/@kironroy/instantiatedclasses2) | |
**_Auto Properties_** = are more common because auto-properties target many types of applications WinForms, WPF, ASP.NET MVC... | |
**_Constructor_** = (ctor) is a method that is not static. It is part of the instantiated class. A constructor is a special type of method when a "car/house" (object) is built. It does not return anything | |
[**_Method overloading_**](https://repl.it/@kironroy/methodoverloading2) | |
[**_Extension Methods_**](https://repl.it/@kironroy/extensionmethods2) | |
[**_Inheritance_**](https://repl.it/@kironroy/inheritance2) | |
[**_Interface_**](https://repl.it/@kironroy/interfaces2) | |
[**_Abstract Classes_**](https://repl.it/@kironroy/abstractclasses2) | |
[**_Abstract Classes and Interface_**](https://repl.it/@kironroy/abstractclasses3) | |
**_Value Types_**: hold actual data | |
* int | |
* double | |
* bool | |
* char | |
**_Reference Types_**: refer to a location in memory | |
* Classes | |
* Objects | |
* Arrays | |
* Indexers | |
* Interfaces | |
* Every class is derived from Object — even user-defined classes. | |
* Value types and strings also inherit from Object: | |
* Strings are immutable: they cannot be changed after they are created. | |
Anything that appears to modify a string actually returns a new string object. | |
--- | |
### C# Introduction | |
* **[C#](https://docs.microsoft.com/en-us/dotnet/csharp/)** | |
* [C# 8.0](https://www.youtube.com/watch?v=2lUZ58Zyu3w) | |
* [C# Tutorials Point](https://www.tutorialspoint.com/csharp/index.htm) | |
* [Tutorials Teacher](https://www.tutorialsteacher.com/csharp/csharp-partial-class) | |
* [C# Tutorials Wb](https://wellsb.com/csharp/) | |
* [C# Compiler](https://www.jdoodle.com/compile-c-sharp-online) | |
* [C# Formatter](https://codebeautify.org/csharpviewer) | |
* [Windows Powershell](https://github.com/kironroy/kironroy.github.io/wiki/Windows-Powershell) | |
* [DotNet](https://dotnet.github.io/) | |
* [Learn Unity](https://learn.unity.com/) | |
--- | |
### Articles | |
* [_Code Project_](https://www.codeproject.com/) | |
* [_Null Reference Exception_](https://stackify.com/nullreferenceexception-object-reference-not-set/) | |
* [_Raygun_](https://raygun.com/blog/dotnet-vs-nodejs/) | |
* [_Uno_](https://platform.uno/) | |
* [_Blazor_](https://dotnet.microsoft.com/apps/aspnet/web-apps/client) | |
* [_Code_](https://bobcarp.files.wordpress.com/2014/07/code-charles-petzold.pdf) | |
* [_Anders Hejlsberg_](https://en.wikipedia.org/wiki/Anders_Hejlsberg) | |
* [_PowerBuilder_](https://en.wikipedia.org/wiki/PowerBuilder) | |
* [_Using Statements_](https://www.techopedia.com/definition/25646/using-statement-c) | |
* [_Expressions vs Statements_](https://www.programiz.com/csharp-programming/expressions-statements-blocks) | |
* [_Top 20 C# Interview Questions and Answers_](https://www.dotnettricks.com/learn/csharp/top-20-csharp-interview-questions-and-answers) | |
* [_OOP explanations_](https://www.freecodecamp.org/news/object-oriented-programming-concepts-21bb035f7260/) | |
* [_MS sample code_](https://code.msdn.microsoft.com/) | |
* [_Code Foundry Job roadmap_](http://www.coderfoundry.com/jobroadmap) | |
* [_Invero Group_](https://www.inverogroup.com/) | |
* [_Coding Coach_](https://codingcoach.io/) | |
--- | |
### Troubleshooting | |
* [_DB Lock Error_](https://stackoverflow.com/questions/47460039/vs-2017-git-local-commit-db-lock-error-on-every-commit/47472811) | |
* [_Repl IT GitHub error_](https://replit.canny.io/bug-reports/p/public-github-repo-wont-import) | |
* [_Solving Data Diagram Error_](https://www.youtube.com/watch?v=MUT3uMOVmy0) | |
--- | |
### Meetups | |
* [LA Dot NET](https://www.meetup.com/LADOTNET/messages/boards/thread/51573371) | |
--- | |
### Stack and Heap | |
* [Heap and Stack](https://www.c-sharpcorner.com/article/C-Sharp-heaping-vs-stacking-in-net-part-i/) | |
* [Stack vs Heap](http://net-informations.com/faq/net/stack-heap.htm) | |
* [Pass by value/ref](https://blog.udemy.com/csharp-pass-by-reference/) | |
* [Stack and Heap Location](https://stackoverflow.com/questions/79923/what-and-where-are-the-stack-and-heap) | |
* [.NET Stack and Heap](https://www.youtube.com/watch?v=clOUdVDDzIM) | |
* [Difference between a Value Type and a Reference Type](http://net-informations.com/faq/general/valuetype-referencetype.htm#:~:targetText=A%20Value%20Type%20holds%20the,are%20stored%20in%20the%20stack) | |
--- | |
### Programming Features Help | |
* [Sorting Arrays Alpha](https://social.msdn.microsoft.com/Forums/en-US/8e73cea7-c63e-4387-885f-538d33658fac/sorting-arrays-alphabetically?forum=csharpgeneral) | |
* [Storing user input _Slack Overflow_](https://stackoverflow.com/questions/19146058/storing-user-input-integers-in-an-array) | |
* [C# Storing Value In Array](https://www.completecsharptutorial.com/basic/storing-values.php) | |
* [Storing user input](https://social.msdn.microsoft.com/Forums/vstudio/en-US/5aac0051-9b48-4d0f-8f38-7727e1ac83fa/im-confused-about-how-to-store-user-inputted-strings-to-an-array-and-display-all-of-the-entered?forum=csharpgeneral) | |
* [Difference between types](https://stackoverflow.com/questions/2690544/what-is-the-difference-between-a-strongly-typed-language-and-a-statically-typed) | |
* [What is the difference between a field and a property?](https://stackoverflow.com/questions/295104/what-is-the-difference-between-a-field-and-a-property) | |
* [C# skills test](https://www.proprofs.com/quiz-school/story.php?title=c-skills-test) | |
* [Method Overloading vs Overriding](https://www.c-sharpcorner.com/UploadFile/8a67c0/method-overloading-and-method-overriding-in-C-Sharp/) | |
* [MS Docs Interfaces](https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/interfaces/) | |
* [Online .Net Escape Tool | Online C# String Escape Tool](http://easyonlineconverter.com/converters/dot-net-string-escape.html) | |
--- | |
### Algorithms | |
* [Interview questions](https://www.softwaretestinghelp.com/c-sharp-interview-questions/) | |
* [Brilliant](https://brilliant.org/?utm_medium=sponsor&utm_source=youtube&utm_campaign=techlead_130719) | |
* [HackerRank](https://www.hackerrank.com/) | |
* [C# Algorithms](https://www.csharpstar.com/towers-of-hanoi-in-csharp/) | |
* [Algorithms](https://medium.com/coderbyte/how-to-get-good-at-algorithms-data-structures-d33d5163353f) | |
--- | |
### Console Games | |
* [RPG Game](https://scottlilly.com/build-a-cwpf-rpg/) | |
* [Let's Code in C# Making a Game, Movement, Enemy AI, Items](https://www.youtube.com/watch?v=ZD-QOSswwDI) | |
* [A Basic C# Console Game Movement Engine](https://www.dreamincode.net/forums/topic/215620-a-basic-c%23-console-game-movement-engine/) | |
* [C Sharp game](http://programmingisfun.com/learn/c-sharp-adventure-game/) | |
### IOT (Internet of Things) | |
* [_Meadow: Full-stack .NET Standard IoT platform_](https://www.wildernesslabs.co/meadow) | |
--- | |
### Open Source | |
* [Microsoft .NET](https://github.com/Microsoft/dotnet/blob/master/dotnet-developer-projects.md) | |
* [Up For Grabs](https://up-for-grabs.net/#/) | |
* [Hacker Earth](https://www.hackerearth.com/) | |
* [Top Coder](https://www.topcoder.com/) | |
--- | |
### Tools | |
* [_Rider IDE_](https://www.jetbrains.com/rider/) | |
* [JSON Lint](https://jsonlint.com/) | |
--- | |
### Topics | |
#### _Scope_ | |
* [Scope](https://repl.it/@kironroy/csharpscope) | |
#### _Control Flow_ | |
* [Control Flow](https://repl.it/@kironroy/controlflow) | |
#### _Arrays and Lists_ | |
* [Arrays and Lists](https://repl.it/@kironroy/arraylists) | |
* [List in Order](https://repl.it/@kironroy/studentList?language=csharp) | |
* [Dictionaries](https://repl.it/@kironroy/dictionaries?language=csharp) | |
#### _Strings_ | |
* [Strings](https://repl.it/@kironroy/strings) | |
#### _DateTime_ | |
* [Date and Time](https://repl.it/@kironroy/datetime) | |
#### _Enums_ | |
* [Enums](https://repl.it/@kironroy/enums) | |
#### _Strings_ | |
* [Files](https://repl.it/@kironroy/files) | |
#### _Procedural_ | |
* [Procedural](https://repl.it/@kironroy/procedural) | |
#### _OPP_ | |
* [Refs vs Value](https://repl.it/@kironroy/refvsvalue) | |
* [Refs vs Value 2](https://repl.it/@kironroy/refvsvalue2) | |
* [Ref vs Value 3](https://repl.it/@kironroy/referencevaluetype?language=csharp) | |
* [Classes, Structs, Enums](https://repl.it/@kironroy/ClassesStructsEnum) | |
* [Classes Two](https://repl.it/@kironroy/ClassesTwo) | |
* [Constructors](https://repl.it/@kironroy/constructors) | |
* [Constructors 2](https://repl.it/@kironroy/constructorstwo) | |
* [Object Initializers](https://repl.it/@kironroy/objectinitializers) | |
* [Methods](https://repl.it/@kironroy/methods) | |
* [Method Overloading](https://repl.it/@kironroy/methodoverloading) | |
* [Fields](https://repl.it/@kironroy/fields) | |
* [Access Modifers](https://repl.it/@kironroy/accessmodifers) | |
* [Access Modifers 2](https://repl.it/@kironroy/accessmodifers2) | |
* [Auto Implemented](https://repl.it/@kironroy/autoimplemented2) | |
* [Properties](https://repl.it/@kironroy/properties) | |
* [Indexers](https://repl.it/@kironroy/indexers) | |
* [Encapsulation](https://repl.it/@kironroy/encapsulation) | |
* [Inheritance](https://repl.it/@kironroy/inheritance1) | |
* [Composition](https://repl.it/@kironroy/composition) | |
* [Polymorphism](https://repl.it/@kironroy/polymorphism) | |
* [Up and Down Casting](https://repl.it/@kironroy/updowncasting) | |
* [Boxing Unboxing](https://repl.it/@kironroy/boxingunboxing) | |
* [Method Overriding](https://repl.it/@kironroy/methodoverriding) | |
* [Abstract Classes](https://repl.it/@kironroy/abstractclasses) | |
* [Interfaces](https://repl.it/@kironroy/interfaces) | |
#### _Additional Topics_ | |
* [Generics](https://repl.it/@kironroy/generics) | |
* [Generics 2](https://repl.it/@kironroy/genericstwo) | |
* [Lambda Expressions](https://repl.it/@kironroy/lambda) | |
* [Lambda Expressions Treehouse](https://repl.it/@kironroy/lambdatreehouse) | |
* [Lambda Expressions 2](https://repl.it/@kironroy/lambda2) | |
* [Delegates](https://repl.it/@kironroy/delegates) | |
* [Nullable Types](https://repl.it/@kironroy/nullabletypes) | |
* [Dynamic](https://repl.it/@kironroy/dynamic) | |
* [Extenstion Methods](https://repl.it/@kironroy/extenstionmethods) | |
* [LINQ](https://repl.it/@kironroy/linq) | |
* [LINQ and a number list](https://repl.it/@kironroy/LINQnumberslist) | |
* [List of birds](https://repl.it/@kironroy/listofbirds?language=csharp) | |
* [Actions and Funcs](https://repl.it/@kironroy/actionfuncs?language=csharp) | |
* [Query with LINQ](https://repl.it/@kironroy/querywithlinq?language=csharp&folderId=) | |
* [Exception Handling](https://repl.it/@kironroy/exceptionhandling) | |
--- | |
![c sharp logo](https://kironroy.github.io/vsicon.svg) | |
#### C# Repl | |
``` > #r "C:\Users\yourusername\source\repos\BirdWatcher\BirdWatcher\BirdWatcher.dll" = your project will be linked to C# Interactive (REPL)``` | |
#### Code Snippets | |
[Visual Studio Shortcuts](https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf) | |
``` Control + Shift N = start a new project ``` | |
``` Alt UP ARROW / DOWN ARROW = move a single or multiple lines of code up or down ``` | |
``` control + j = brings back intellisense ``` | |
``` control + x = cut a single line ``` | |
``` control + kc = // comment several lines out``` | |
``` control + . = // using System ...``` | |
``` control + k = uncomment several lines out``` | |
``` shift + tab = unindent lines of code``` | |
``` control shift b = complie (build) ``` | |
``` control shift d = copy and past previous line ``` | |
``` cw + tab tab = Control.WriteLine() (press tab twice)``` | |
``` try tab = try block created (works for if, while, do, for and foreach statements as well)``` | |
``` ctor = Makes a constructor``` | |
``` prop + tab tab = declare auto-properties``` | |
``` propfull + tab tab = declare full on properties``` | |
``` control + tab = get back to another file``` | |
```type /// private static void addTwoNumbers ... = add /// <summary> comments </summary>``` | |
```Control R + R = change name of a class``` | |
```Control + Home = Arrive at top of page (without scrolling)``` | |
```Control + End = Arrive at end of page (without scrolling)``` | |
```Control . = Recognize a class from another namespace``` | |
```Control R, A = run test``` | |
```mvcaction4 + tab = create a ActionResult (MVC)``` | |
[In case mvcaction4 snippet does not work click here](https://stackoverflow.com/questions/42748460/why-mvcaction4-code-snippet-does-not-react) | |
#### Debugging | |
``` F9 = add break point``` | |
``` F5 = run in debug mode``` | |
``` F10 = step over``` | |
``` Shift + F11 = step out of``` | |
``` Shift + F5 = exit debug mode``` | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment