@{
int x = 123;
string y = "because.";
}
This file contains hidden or 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
| param( | |
| [string]$jenkinsMasterbaseUrl, | |
| [string]$nodeName, | |
| [string]$privateKey, | |
| [string]$workspaceRootFolder | |
| ) | |
| $ErrorActionPreference = "Stop" | |
| Function Install-JenkinsBuildAgent { |
| Name | Description | Exceptions |
|---|---|---|
| Avoid async void | Prefer async Task methods over async void methods | Event handlers |
| Async all the way | Don't mix blocking and async code | Console main method |
| Configure context | Use ConfigureAwait(false) when you can |
Methods that require context |
Windows PowerShell has several transition aliases that allow UNIX and CMD users to use familiar command names in Windows PowerShell. The most common aliases are shown in the table below, along with the Windows PowerShell command behind the alias and the standard Windows PowerShell alias if one exists.
| CMD Command | UNIX Command | PowerShell Command | PowerShell Alias |
|---|---|---|---|
| dir | ls | Get-ChildItem | gci |
This file contains hidden or 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
| using System; | |
| using System.Threading.Tasks; | |
| using System.Collections.Generic; | |
| using System.Collections.ObjectModel; | |
| using System.Diagnostics; | |
| using System.Net.Sockets; | |
| namespace ConsolePortScanner | |
| { | |
| class MainClass |
| title | subtitle | author | date | source | notoc |
|---|---|---|---|---|---|
Dotnet Core Cheat Sheet |
This cheat sheet is courtesy Ben Day |
Ben Day |
August 22, 2017 |
false |
This cheat sheet is courtesy Ben Day and is available here. This Markdown file is just for easy reference for programmers.
This file contains hidden or 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
| <StyleCopSettings Version="105"> | |
| <GlobalSettings> | |
| <CollectionProperty Name="RecognizedWords"> | |
| <Value>upsert</Value> | |
| <Value>api</Value> | |
| <Value>deserializer</Value> | |
| <Value>deserializing</Value> | |
| <Value>json</Value> | |
| <Value>json:api</Value> | |
| </CollectionProperty> |