Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@carmeleve
Created July 8, 2020 11:26
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 carmeleve/0642f9918f4cdd864d855eeee3fabb81 to your computer and use it in GitHub Desktop.
Save carmeleve/0642f9918f4cdd864d855eeee3fabb81 to your computer and use it in GitHub Desktop.
public class Thing
{
private Thing(string aString)
{
this.AString = aString;
}
public string AString { get; }
public static async Task<Thing> CreateThingAsync()
{
var aString = await GetStringAsync();
return new Thing(aString);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment