Created
July 8, 2020 11:26
-
-
Save carmeleve/0642f9918f4cdd864d855eeee3fabb81 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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