Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Fagro Fagro

🎯
Focusing
  • Dominican Republic
View GitHub Profile
@Fagro
Fagro / Immutable classes C#
Created Sep 25, 2018
Immutable classes C#
View Immutable classes C#
extracted from : https://stackoverflow.com/questions/38575646/general-purpose-immutable-classes-in-c-sharp
class Program
{
static void Main(string[] args)
{
var immutable1 = new A(3, 4, new Batida(name: "juan", lastname: "Doe"));
var immutable2 = immutable1.With( Batida: new Batida("Roger", "Tan"));