Diagnostics

Learn how to perform shutdown through simple C# code. By writing few lines of code, you can create an executable that shutdown your computer with a single ...

In this article, learn how to execute batch files using C# by using Process class of System.Diagnostics namespace.Execute batch files using C#: ...

In this article, learn creating EventLog in C#. In C#, the System.Diagnostics namespace of System.Runtime.dll has the EventLog class which can be used to ...

In this article, learn how to measure the code execution time using Stopwatch instance in C#. In C#, the System.Diagnostics namespace of System.Runtime.dll ...

In this article, learn how to perform shutdown computer using C# code.Shutdown computer using C#:using System; using System.Diagnostics; ...

In this article learn how to simulate BOSD error in C#. Blue screen of death (BSOD) is the terminology used when a Windows crash appeared with a blue screen. ...

Attributes provide a powerful method of associating declarative information in C# code. In this article, learn how to use DubuggerHidden attribute which hides ...

Show next

How to Execute batch files using C#

In this article, learn how to execute batch files using C# by using Process class of System.Diagnostics namespace.Execute batch files using C#:Here there are two ways you can run the batch script using C# code. First by specifying the timeout and secondly by executing the batch file as ...

READ MORE +
Creating EventLog in C# | Windows EventViewer

In this article, learn creating EventLog in C#. In C#, the System.Diagnostics namespace of System.Runtime.dll has the EventLog class which can be used to write a application log entry into the windows event logs.Creating EventLog in C# | Windows EventViewer : The Windows Event Viewer shows ...

READ MORE +
Measure the code execution time using Stopwatch instance in C#

In this article, learn how to measure the code execution time using Stopwatch instance in C#. In C#, the System.Diagnostics namespace of System.Runtime.dll has the Stopwatch class which can be used to accurately measure the time taken for code execution.How to measure the code execution ...

READ MORE +
Shutdown computer using C# code

In this article, learn how to perform shutdown computer using C# code.Shutdown computer using C#:using System; using System.Diagnostics; namespace ConsoleApplication1 { public class Program { public static void Main() { ShutDown(); ...

READ MORE +
Simulating Blue Screen Of Death – BOSD error in C#

In this article learn how to simulate BOSD error in C#. Blue screen of death (BSOD) is the terminology used when a Windows crash appeared with a blue screen. Typically, the blue screen crash occurred when Microsoft Windows encountered a critical error at the kernel level and failed to recover. ...

READ MORE +
www.troubleshootyourself.com
Logo