Showing posts with label C#. Show all posts
Showing posts with label C#. Show all posts

Monday, October 28, 2013

C# - How to change Date in Visual Studio Debugger

1. Set the breakpoint
2. Open your DateTime variable in QuickWatch for example (right click)
3. In Expression text box enter new value, this is example if your variable name is "dt":
dt = dt.AddDays(3) or DateTime.Parse or new DateTime()
 4. Press enter and continue executing project

<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6962084931129525"
     crossorigin="anonymous"></script>