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
<Project> | |
<PropertyGroup> | |
<!-- <LangVersion>latest</LangVersion> --> | |
<!--<LangVersion>preview</LangVersion>--> | |
<LangVersion>8</LangVersion> | |
</PropertyGroup> | |
</Project> |
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
namespace Samples; | |
public class AppSettings | |
{ | |
public string? Name { get; set; } | |
} |
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
var options = new JsonSerializerOptions | |
{ | |
DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull, | |
Encoder = JavaScriptEncoder.UnsafeRelaxedJsonEscaping, | |
ReferenceHandler = ReferenceHandler.IgnoreCycles, | |
WriteIndented = true | |
} | |
var json = JsonSerializer.Serialize(state, options); |
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
[RankColumn] | |
[HideColumns(new string[] { "Job" })] | |
[MemoryDiagnoser(false)] | |
[SimpleJob(RuntimeMoniker.Net60)] | |
[SimpleJob(RuntimeMoniker.Net70)] | |
[GroupBenchmarksBy(BenchmarkLogicalGroupRule.ByMethod)] | |
public class Benchmark | |
{ | |
// ... start from here | |
} |
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
public struct Money | |
{ | |
private readonly double _amount; | |
public Money(double amount) | |
{ | |
_amount = amount; | |
} | |
public double Amount => _amount; |
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
<Target Name="CopyDLLs" AfterTargets="Build"> | |
<Message Text="Executing Copy Command Task" Importance="High" /> | |
<PropertyGroup> | |
<PublishedCommandsDir>..\..\..\..\Calabonga.Commandex.Shell\PublishedCommands</PublishedCommandsDir> | |
</PropertyGroup> | |
<Copy SourceFiles="$(TargetDir)$(ProjectName).dll;$(TargetDir)$(ProjectName).pdb" DestinationFolder="$(PublishedCommandsDir)" /> | |
<Message Text="Command $(ProjectName) successfully copied" Importance="High" /> | |
</Target> |
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
public abstract class Entity : IEquatable<Entity> | |
{ | |
protected Entity(Guid id) | |
{ | |
Id = id; | |
} | |
public Guid Id { get; private init; } | |
public override bool Equals(object? obj) |
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
{ | |
"rest-client.environmentVariables": { | |
"$shared": {}, | |
"develop":{}, | |
"production": {} | |
}, | |
"rest-client.previewOption": "full", | |
"rest-client.enableTelemetry": false, | |
"rest-client.previewResponseInUntitledDocument": false, | |
"rest-client.showResponseInDifferentTab": false, |
OlderNewer