Commit Graph

70 Commits (f1ef01b1657df520fc6ab8d30350f7c5aad5ee3b)

Author SHA1 Message Date
Marcus Parsons 5f1e78f4d9 Added new section (#26554)
* Added new section

Added a new section for defining what can be returned in custom methods and how to correct a mistake with returns

* Update guide/english/csharp/return/index.md

Co-Authored-By: marcusparsons <marcusparsons@users.noreply.github.com>

* Update guide/english/csharp/return/index.md

Co-Authored-By: marcusparsons <marcusparsons@users.noreply.github.com>

* Update guide/english/csharp/return/index.md

Co-Authored-By: marcusparsons <marcusparsons@users.noreply.github.com>

* Update guide/english/csharp/return/index.md

Co-Authored-By: marcusparsons <marcusparsons@users.noreply.github.com>
2019-05-17 08:02:17 -07:00
Randell Dawson 0a1eeea424 fix(guide) Replace invalid prism code block names (#35961)
* fix: replace sh with shell

fix replace terminal with shell

fix replace node with js

fix replace output with shell

fix replace cs with csharp

fix replace c++ with cpp

fix replace c# with csharp

fix replace javasctipt with js

fix replace syntax  with js

fix replace unix with shell

fix replace linux with shell

fix replace java 8 with java

fix replace swift4 with swift

fix replace react.js with jsx

fix replace javascriot with js

fix replace javacsript with js

fix replace c++ -  with cpp

fix: corrected various typos

fix: replace Algorithm with nothing

fix: replace xaml with xml

fix: replace solidity with nothing

fix: replace c++ with cpp

fix: replace txt with shell

fix: replace code with json and css

fix: replace console with shell
2019-05-15 19:08:19 +02:00
Evaldas 57762df6f7 Add information about pattern matching (#24400)
Added information about how we can use a switch statement for pattern matching and gave an example from Microsoft docs.
2019-05-13 22:18:18 +05:30
Nitin Sharma 35c38ce5f4 Simplified language. (#32814)
Simplified the language, removing duplicate phrases.
Also did little formatting.
2019-05-11 22:06:13 +05:30
Marcus Parsons 7bf2752bd0 Edited previous section and added new sections (#24828)
* Edited previous section and added new sections

Edited previous section to be csharp code base and formatted a bit better.  Also added new sections about more complex topics of for loops

* fix: removed repl.it links

* Update index.md
2019-05-04 09:21:53 -07:00
Nitin Sharma f743f1e732 Fixed example (#32827)
Replaced assignment operator with the equality operator.
Fixed example structure.
Improved language.
2019-04-23 08:04:48 -07:00
Kaan 4969e85853 Added "More Information" Section (#30483) 2019-04-15 15:51:22 +05:30
Vocaoson 4fd5a773b9 Update while-loop content (#29108) 2019-04-09 14:12:43 +05:30
Leoproject 8935f3ad15 Missing semicolon. (#28921)
Addition of a missing semicolon in the code.
2019-04-03 14:36:23 +05:30
Kaan cf6da33247 Added "More Information" Section (#30480) 2019-04-01 23:18:22 +05:30
Willy David Jr 5810a2cf41 Corrected spelling of instatiate to instantiate. (#32747)
Corrected spelling of instatiate.
2019-04-01 00:25:43 +05:30
Lipis e84ae45008 Javascript -> JavaScript (English) (#35183)
* Javascript -> JavaScript (English)

* Update technical documentation page for required change

* Update use-class-syntax-to-define-a-constructor-function.english.md

* Update left-factorials.md
2019-03-28 14:05:41 +05:30
Patryk Buda fc58f59710 Short if Else Statements (#28225)
* Short if Else Statements

* Update index.md
2019-03-21 23:13:45 +05:30
Marcus Parsons 69a4eb67fe Added additional section and update previous section (#23998)
* Added additional section and update previous section

Added an additional section for complex ternary operations and updated previous section to have csharp flavored code rendering.

* Paulywill requested changes

Paulywill requested changes: removed any "I" terminology and my personal REPL link.

* Update index.md

Changed the subheading markdown.

* Update index.md
2019-03-21 10:58:01 -04:00
Evaldas c910a1efad Add information about access modifiers (#24422)
* Add information about access modifiers

Added some information about 3 most common access modifiers and a simple example.

* Fix indent
2019-03-21 01:21:47 +05:30
AntTAKEOVER 763d6658b1 Added a Code Example (#24153)
* Added a Code Example

Added an if...else equivalent of a ternary operator as an example to help readers gain a better understanding of how ternary operators work.

* Update index.md
2019-03-21 01:00:30 +05:30
Rajiv Ranjan Singh cda3febdbe Fixed Typographical Error in guide/english/csharp/index.md (#35635)
* Update index.md

* reverted code
2019-03-19 16:17:40 -07:00
Christian Coffey 145a94f192 Update index.md (#30085)
Removed an unnecessary example as well as changed the description for the usage of the 'await' keyword. Also added an example for async method declarations.
2019-02-24 19:03:33 -07:00
justingiffard 97834c64d2 Fixed example 2 so that its runnable (#22328)
added some some time consuming code and a return to `CalcDamage`
removed `static` from `CalcTotalDamage` so that the compiler doesn't complain that `CalcDamage` should be static
compiler wasn't happy with `totalDamage += CalcDamage(player);` or `return await Task.WhenAll(totalDamage)` because you are attempting to assign a Task to an int. Fixed it by using `WhenAll` correctly
Changed parameter name of `CalcTotalDamage` from `group` to `people` as  `group` can  be confusing to read as its used with linq
2019-02-24 18:36:06 -07:00
Thaurin b444d91364 Clean up and fix markdown/spelling errors (#27935)
* Clean up and fix markdown/spelling errors

* fix: removed comma
2019-02-23 22:26:28 -08:00
TrangNgu65 7381f0b69a Grammatical error fix (#28786)
Fixed some grammatical errors with capitalization and diction.
2019-02-23 14:58:59 -08:00
Chris Todd 90263a4916 To add a introductory Paragraph about .net core (#24200)
* To add a introductory Paragraph about .net core

Just thought as a beginner, it is really good to have a basic intro on .net core as i really struggled to understand the .net eco-system when I started out!

* Fix typos, add ref link, clean up sentence
2019-02-13 02:46:22 -05:00
Clinton Bale 20cf0d106c Reworded and added to csharp interface documentation (#33229)
* Reworded and added to interface documentation

Fixed a few typos and reworded and added parts to the csharp interface documentation

* fix: used single backticks instead of triple backticks
2019-01-26 17:49:49 -08:00
Willy David Jr efff592bc6 Corrected syntax for interface. (#32878)
Corrected syntax of interface. From Interface to interface (lowercase on first letter). 
If the first letter on the word interface is uppercase, this will produce an error on Visual Studio stating that: 

The type or namespace name 'Interface' could not be found (are you missing a using directive or an assembly reference?)
2019-01-26 17:30:51 -08:00
Alvin Christian Quijano 069953e0bd Added information (#26367)
Added information to foreach loop. Indicated foreach loop is read only.
2019-01-15 16:57:39 -05:00
Travis J. Terrell 40c17b6ba1 feat: add c# guide for lists (#33787)
* feat: add c# guide for lists

* fix: minor grammar fix on how-to-steup-freecodecamp-locally

* fix: corrected typo
2019-01-02 14:51:42 -08:00
laurGeo 191bc0492a Update index.md (#26379)
* Update index.md

Grammar changes, addition of new keyword sentence

* Added code formatting to keywords
2018-12-26 18:49:41 -05:00
pirland 37bca450a8 Update index.md (#26376)
Fixed minor wording and syntax issues throughout the  #### Generations in C# GC section.
2018-12-26 18:49:04 -05:00
Evaldas efb62984c8 Fixed a typo (#34686) 2018-12-15 05:12:53 -08:00
Marcus Parsons bc64fb970e Update previous section and added new sections (#28279)
Updated the previous section with csharp flavoring and added 2 new sections on implicit sorting and a version of explicit sorting.
2018-12-15 05:10:07 -08:00
Alvin Christian Quijano 95f9584bad Fixed typo's added more information with examples (#26331)
Added more information to the initializing an array sub-topic.
2018-12-15 05:08:19 -08:00
Evaldas 731dda0539 Add information about IndexOutOfRangeException (#25072)
* Add information about IndexOutOfRangeException

Added some information that explains what happens if an invalid index is used while working with arrays.

* Fixed grammar, removed IndexOutOfRangeException
2018-12-15 05:55:23 -05:00
Corey Abma 723fa03609 update: added additional note fields (#29551)
* fix: corrected placement of notes

Some "note" fields were preemptive in their placement; I corrected their placement to be in more appropriate locations.

* update: added additional note fields

Added some additional "note" fields to assist those who are reading through the PHP documentation.

* fix: formatting of escape sequence examples

The formatting was a bit jumbled, so I cleaned up the formatting of the escape sequence.

* update: improved examples

I added a new example to demonstrate the use of a "break" statement in a while loop, as well as numbered each example.

* update: add clarifying statement

I added a note at the end of the description, with the goal of being a bit more explicit in terms of what the "continue" statement does.
2018-12-13 00:51:39 -08:00
Evaldas 5b489aaffa Add example (#24406)
* Add example

Added an example of how to use is keyword

* Fixed error in syntax highlighting
2018-12-10 18:08:53 -05:00
AntTAKEOVER 048ee477e2 Fixed Error in Code (Variable name) (#24168) 2018-12-06 21:03:20 -05:00
AntTAKEOVER e9587a7a46 Fixed Error in Code (#24162) 2018-12-06 21:00:54 -05:00
Neville Bokdawalla 37f2de04de Updated index.md (#24117)
Added new language feature listing 'Discards' under section - "New Features Added in C# 7.0"
2018-12-06 17:48:38 -05:00
Anirban Ghatak 7498ce0052 Added a few lines to emphasize Interfaces importance to Design patterns. (#23700)
* Added a few lines to emphasize Interfaces importance to Design patterns.

* Fixed several grammatical mistakes
2018-12-01 21:30:11 -05:00
Anirban Ghatak 7eb767860a Removed duplicate paragraphs. Added some keywords to refer. (#23692)
* Removed duplicate paragraphs. Added some keywords to refer.

Added some lines about GC also, removed duplicate paragraphs from the text.

* Fixed formatting
2018-12-01 21:29:19 -05:00
GrantiVersace 29bb99d2db Simple grammatical fixes (#23495) 2018-11-23 22:41:27 -05:00
GrantiVersace bcfa28fe03 Fixed grammatical errors in last paragraph (#23457) 2018-11-23 21:18:39 -05:00
justingiffard b9b5346f8f clarified and added example (#22450)
* Clarified that not all constructors need to look like that
* Added an example of a class extending a base class and implementing 2 interfaces
2018-11-23 07:00:50 -06:00
Marcin Grygierczyk 7ea5810a8a Add description of when clause (#22464) 2018-11-22 06:57:49 -06:00
Marcin Grygierczyk e612f499c2 Add description of abstract class (#22400) 2018-11-21 09:01:22 -06:00
justingiffard 5ddb059242 Made pretty and clarified (#22392)
* fixed indentations, added line breaks
* split the 3 switch case output examples and specified in which situation they would be executed
2018-11-21 08:58:23 -06:00
AntTAKEOVER b49f534d73 Added the output of a print statement (#22748)
Added the output for a print statement used in a code example.
2018-11-20 18:48:01 -05:00
Marcin Grygierczyk b92b49efb6 Add description of multidimensional arrays (#22210) 2018-11-18 20:00:14 +00:00
Marcin Grygierczyk c7499729e2 Add description of jagged arrays (#22290) 2018-11-18 08:26:36 -06:00
Max Dionysius 9a496d687e Added another catch block (#21965)
* Added another catch block

Added two more catch blocks, so the user can see, he can handle different exception types differently

* fixed comment to match catch statement
2018-11-17 18:16:28 -07:00
Max Dionysius 8e5e3a7db0 Added a second implementation (#21944)
So it will highlight, that an interface can have multiple implementations (which differs) at the same time
2018-11-17 15:37:20 -07:00