Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente |
lang:csharp:syntaxe [2017/09/09 14:32] – maff => mhtml root | lang:csharp:syntaxe [2020/04/28 21:12] (Version actuelle) – mhtml -> html root |
---|
| ====Convention de nommage==== |
| [[https://docs.microsoft.com/fr-fr/dotnet/standard/design-guidelines/capitalization-conventions|Conventions de mise en majuscules]] {{ :lang:csharp:syntaxe:conventions_de_mise_en_majuscules_-_framework_design_guidelines_microsoft_docs_2020-04-28_9_09_06_pm_.html |Archive du 22/10/2008 le 28/04/2020}} |
| |
| [[https://www.c-sharpcorner.com/UploadFile/8a67c0/C-Sharp-coding-standards-and-naming-conventions/|C# Coding Standards And Naming Conventions]] {{ :lang:csharp:syntaxe:c_naming_conventions_2020-04-28_9_09_05_pm_.html |Archive du 26/09/2019 le 28/04/2020}} |
| |
| En gros : tout est en PascalCase sauf les arguments de méthodes et les variables. Il n'est pas défini de convention pour les attributs privés mais on peut utiliser camelCase en les préfixant par ''_''. |
| |
| |
| |
| |
Opérateur [[lang:csharp:syntaxe:cond_null|?. et ??]]. | Opérateur [[lang:csharp:syntaxe:cond_null|?. et ??]]. |
| |
- La méthode doit l'initialisée avant de se terminer. | - La méthode doit l'initialisée avant de se terminer. |
| |
[[http://stackoverflow.com/questions/388464/whats-the-difference-between-the-ref-and-out-keywords|c# - What's the difference between the 'ref' and 'out' keywords_ - Stack Overflow]], {{ :lang:csharp:syntaxe:c_-_what_s_the_difference_between_the_ref_and_out_keywords_-_stack_overflow.mhtml |Archive}} | [[http://stackoverflow.com/questions/388464/whats-the-difference-between-the-ref-and-out-keywords|c# - What's the difference between the 'ref' and 'out' keywords_ - Stack Overflow]] {{ :lang:csharp:syntaxe:c_-_what_s_the_difference_between_the_ref_and_out_keywords_-_stack_overflow_2020-04-28_9_09_09_pm_.html |Archive du 23/12/2008 le 28/04/2020}} |
| |
=====Cast avec as, is et ()===== | =====Cast avec as, is et ()===== |