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
# Remove the line below if you want to inherit .editorconfig settings from higher directories | |
root = true | |
# C# files | |
[*.cs] | |
#### Core EditorConfig Options #### | |
# Indentation and spacing | |
[*] |
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
# Get parent directory of script being executes | |
$base_dir = Split-Path -Parent $PSScriptRoot | |
# Delete contents of a folder. | |
Get-ChildItem <folder> -Recurse -Force | Remove-Item | |
# Concatenate files. | |
# See https://stackoverflow.com/a/53079166/779957 |
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.Threading; | |
... | |
public static void Main(string[] args) | |
{ | |
Console.WriteLine("Press Ctrl+C to shut down."); | |
Console.WriteLine(); | |
var exitEvent = new ManualResetEvent(false); |
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.Runtime.Serialization; | |
namespace Project.Namespace | |
{ | |
/// <summary> | |
/// | |
/// </summary> | |
[Serializable] | |
public class MyException : Exception |