Skip to content

Instantly share code, notes, and snippets.

View samwhaleIV's full-sized avatar

Samuel Robinson samwhaleIV

  • Washington
View GitHub Profile
public readonly struct @object {
private readonly object value;
private @object(object value) => this.value = value;
public bool HasValue => value != null;
public object _ => value;
public static implicit operator bool (@object value) => value.HasValue;
public static implicit operator @object (int value) => new @object(value);