The System. Diagnostics namespace provides a process class which has some method to run external .exe or another application into a C#.
This also enables you to debug and trace code; start, stop, and kill processes; monitor system performance; and read and write event logs.
An exception is an unexpected or unwanted event that occurs when a program is executed i.e at runtime, that disrupts the normal flow of the program’s instructions. Sometimes while executing the program, a user might face the possibility that the program may crash or show an unexpected event Read more…
Convert .eml to .msg files using IndependentSoft C#
EML file extension is created by Microsoft Corporations for Email files. It is also known as RFC 822. In these files, email messages are stored in plain text formats. Microsoft’s Outlook Express uses this file extension to save Mail Read more…
ZipArchive is a built-in package in the System.IO.Compression assembly to compress/decompress files in a zip format in C# code. It allows us to work with a collection of compressed files. For this we can do the following things:
Get a single entry of Read more…
Collections in C#
Arrays are useful for creating and working with a fixed number of strongly typed objects.
Problem with Arrays:
1. Fixed length
2. Insert similar data type elements
Collections are used to create and Read more…
How to set the values of Metadata(Column fields) of Sharepoint Documents
Here is the code in C# which helps you to change the metadata field values of Sharepoint Files.
//This manager class can be used to obtain a SharePointContext object
OfficeDevPnP.Core.AuthenticationManager authMgr = new Read more…
Fill a PDF form using C# console application
We will be using the SyncFusion Package to fill out the PDF Form Fields. To add SyncFusion to your project follow these steps :
1. Go to Tool -> NuGet Package Manager -> Manage NuGet Packages For Solution
2. Then search Read more…
Handle data from .msg file parsed by IndependentSoft’s msg.net package
IndepentSoft’s MSG.NET package is used for parsing of outlook .msg files for reading the contents of file and which can be used to display contents on screen or in our custom viewer Read more…
Record Logs with Nlog .Net Package – Explanation and Examples
Nlog is a free .Net platform based framework designed for generating logs to record the history of events that help to troubleshoot errors and exceptions. Logging is one of the major important area for developers that helps Read more…