46,248 questions
Welcome to our Microsoft Q&A platform!
Q&A currently supports the products listed in right-hand pane.Your issue is more related about C#,you can ask in the following MSDN C# Forum.
https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=csharpgeneral
Thanks.