How to quickly code and run small C# code

后端 未结 19 1599
再見小時候
再見小時候 2021-01-31 01:46

There are times when I want to test new code from the forums or when I need to help my friends with specific C# problem. The problem is I don\'t want to create new \"project\" i

相关标签:
19条回答
  • 2021-01-31 02:13

    You can run a lot of things in the Immediate window (Debug >> Windows >> Immediate)

    For example, you can run the following: System.IO.File.WriteAllText(@"c:\temp\blah.txt", "Hi there!");

    0 讨论(0)
提交回复
热议问题