-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
C# 7.1 and .NET Core 2.0 - Modern Cross-Platform Development - Third Edition
By :
Answer: The Process class has many properties including: ExitCode, ExitTime, Id, MachineName, PagedMemorySize64, ProcessorAffinity, StandardInput, StandardOutput, StartTime, Threads, and TotalProcessorTime. You can find more information about Process Properties at: https://msdn.microsoft.com/en-us/library/System.Diagnostics.Process_properties(v=vs.110).aspx
Stopwatch class?Answer: The Stopwatch class can be accurate to within a nanosecond (a billionth of a second), but you shouldn't rely on that. You can improve accuracy by setting processor affinity, as shown in the article at the following link:http://www.codeproject.com/Articles/61964/Performance-Tests-Precise-Run-Time-Measurements-wi
Task or Task<T>?Answer: Add the suffix Async to the method name, for example, OpenAsync for...