Skip to content

Instantly share code, notes, and snippets.

@niemyjski
Created May 25, 2022 03:23
Show Gist options
  • Save niemyjski/87162eaab78132ac7630c1c868f35312 to your computer and use it in GitHub Desktop.
Save niemyjski/87162eaab78132ac7630c1c868f35312 to your computer and use it in GitHub Desktop.
#if false
throw null;
#else
#endif
unsafe get @event(ref string @as, byte? @throw = sizeof(double))
{
lock(typeof(get)) {}
try
{
return default(uint) switch
{
new uint() => default(get),
_ => default(get)
};
}
catch when (true is not false && false is not true)
{
}
finally
{
}
#if true
return default;
#else
return default;
#endif
}
public readonly struct @get
{
public readonly uint @set;
private readonly string @out;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment