Home » Tutorials » Archive by categoryC# (Page 3)

Get all installed Serial Port using C#

Get-all-installed-Serial-Port-using-csharp
Get all installed Serial Port using C# Today we will learn about Serial Port, how to get all installed Serial Port using C#. We would be required “System.IO.Ports” namespace .  We get all list of Serial ports using SerialPort.GetPortName() method as list of string array. Below is the code...
Continue reading

Get all installed fonts in your computer using C#

GetAllInstalledFonts
Get all installed fonts in your computer using C# Today we will look into, how could we get all installed font’s list from your local computer using C#. To get list of font we would require reference of “System.Drawing” and add using System.Drawing with System.Drawing.Text.   Below is the...
Continue reading

Attach Console with WPF application

Attach Console with WPF application
Attach Console with WPF application Today I am going to explain Attach Console with WPF application. Problem: Sometime developer wants to know regarding some of variables value on clients machine while one’s application is running or wants to check execution steps. Solution: Developer can attach console to see real...
Continue reading

Export to Excel using Open XML

export-excel-using-open-xml
Export to Excel using Open XML Hello folks, Today I am going to explain regarding Export to Excel using Open XML. We could do this in both asp.net and Windows application as well as in WPF. Step 1: Download below libraries: Open XML SDK 2.0 for Microsoft Office ClosedXML...
Continue reading

Constant vs ReadOnly in C#

Constant vs ReadOnly in C#
Constant vs Readonly in C# Constant and Readonly keywords are used to assign fix value to variable through out the application, which could not be changed. Constant in C# Constant field or variable must be assigned at declaration time and after that it would not be changed or modified....
Continue reading

Difference between Var and Dynamic in c#

Difference between Var and Dynamic in C#
Difference between Var and Dynamic in c# Hello friend,Today I will explain about  Difference between Var and Dynamic in c# which is as below: Var Dynamic Introduced in C# 3.0 Introduced in C# 4.0 Statically typed variable, type of variable declared is decided by the compiler at compile...
Continue reading

Convert DataTable to JSON in C#

ConvertDataTableToJSONText
Convert DataTable to JSON in C# We have already explained Convert DataTable to List C#, Is Application running already in WPF, Extension Method in C#, Reflection Introduction c#, Insert data into Database table using SQLBulkCopy class in C#, as keyword C#, Import/Upload Excel file in asp.net with C#, The Microsoft Jet database engine cannot open...
Continue reading

Convert DataTable to List C#

ConvertDataTableToList
Convert DataTable to List in C# We have already explained Is Application running already in WPF, Extension Method in C#, Reflection Introduction c#, Insert data into Database table using SQLBulkCopy class in C#, as keyword C#, Import/Upload Excel file in asp.net with C#, The Microsoft Jet database engine cannot open the file. It is...
Continue reading

Is Application running already in WPF

Application-Running-already-WPF
Is Application running already in WPF Hello folks, till now we have already discussed regarding different topics like WPF The calling thread cannot access this object because a different thread owns it, which is very important when you want to update your UI stuffs while thread is running or from thread, and...
Continue reading




DISCLAIMER:
The content is copyrighted to technothirsty.com and may not be reproduced on other websites without permission from the owner.You may contact us using the information below.