Skip to content

Instantly share code, notes, and snippets.

@svick
Created November 18, 2021 15:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save svick/8ce1e3e26084e36338c65959bcd06bbb to your computer and use it in GitHub Desktop.
Save svick/8ce1e3e26084e36338c65959bcd06bbb to your computer and use it in GitHub Desktop.
using System;
var x = new S3Options { Bucket = "root" };
var y = new S3Options { I = 42 };
Console.WriteLine(y.Bucket);
public struct S3Options
{
public string Bucket { get; init; }
public int I { get; init; } = 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment