Skip to content

Instantly share code, notes, and snippets.

View amis92's full-sized avatar

Amadeusz Sadowski amis92

View GitHub Profile
@amis92
amis92 / Test.cs
Created March 18, 2020 10:44 — forked from HaloFour/Test.cs
Test inheritance with struct builders
/*
public record class Person {
public required int ID { get; init; }
public string FirstName { get; init; }
public string LastName { get; init; }
}
public record class Student : Person {
public required double Gpa { get; init; }
}
@amis92
amis92 / LoginResource.cs
Last active June 28, 2018 11:41 — forked from HaloFour/LoginResource.cs
Data Classes
using System;
using System.Collections.Generic;
/*
* public data class LoginResource
* {
* public string Username { get; }
* public string Password { get; }
* public bool RememberMe { get; } = true;
* }