static void Main(string[] args) { List <string> tags = new List <string>() { "VisualStudio", "Version" }; var result = UnverifiedQuestionDescription.Create("Why does it appear'?' instead of characters?", tags); result.Match( Succ: question => { VoteQuestion(question); Console.WriteLine("You can vote this question!"); return(Unit.Default); }, Fail: ex => { Console.WriteLine($"Question could not be posted. Reason: {ex.Message}"); return(Unit.Default); } ); Console.ReadLine(); }
static void Main(string[] args) { List <string> tags = new List <string>() { "Simulink", "Matlab", "Version" }; var result = UnverifiedQuestionDescription.Create("How can i open a Simulink model created in newer version of Matlab? I mention that the model is created in Matlab 2019a and i have Matlab 2015a.", tags); result.Match( Succ: question => { VoteQuestion(question); Console.WriteLine("You can vote this question!"); return(Unit.Default); }, Fail: ex => { Console.WriteLine($"Question could not be posted. Reason: {ex.Message}"); return(Unit.Default); } ); Console.ReadLine(); }