Browsed by
Category: .Net

This category groups all post related to .net technology

C# XPS to PDF: Free Conversion Made Easy:

C# XPS to PDF: Free Conversion Made Easy:

Create XPS documents from C# code using “Microsoft XPS Document Writer v4”     The Windows XPS Document writer provides a handy tool for generating XPS documents. However, it is require to create printer at windows otherwise printing is not possible. This article gives you a handy tool to generate XPS document using C# code.     To generate XPS document using this project you need pre generated XPS document currently I have added sample XPS document with this Project. This sample…

Read More Read More

Unlock C# Network Secrets: Uncover Adapter Status & Isolate Virtual Networks:

Unlock C# Network Secrets: Uncover Adapter Status & Isolate Virtual Networks:

How to check network connection duration? Please follow below steps to check network duration. Open “Control Panel” -> click on “Network and Internet” -> click “Network and Sharing Center” -> Click on Network Property. Now you can see as per below. To find duration in C# you can refer below code snippet. Add reference from Network List Manager 1.0 Type Library (NETWORKLIST) dll from windows.  How to detect Virtual network:      To filter out virtual networks from list of networks available…

Read More Read More

C# 12: New Features Galore!

C# 12: New Features Galore!

C# 12 arrived in November 2023 alongside .NET 8, packing a punch of new features aimed at simplifying and streamlining your coding experience. Let’s dive into the details of these exciting additions: 1. Primary Constructors: C# 2. Collection Expressions: C# 3. ref readonly parameters: C# 4. Default Lambda Parameters: C# 5. Alias any type: C# 6. Inline arrays: C# 7. Experimental Features: Beyond the highlights: This is just a taste of the new features in C# 12. Other additions include…

Read More Read More