Home

Object cannot be cast from DBNull – Solution

I had a DataGridView in my Windows Form Application with an editable column, This editable column is to get populated with a priority number which I declared as a short in the code. On the DataGridView.CellValueChanged event, I get the…

What is GUID

GUID stands for Globally Unique Identifier. GUID is the Microsoft implementation of the Distributed Computing Environment (DCE) Universally Unique Identifier(UUID). A GUID is a 128-bit value consisting of one group of 8 hexadecimal digits, followed by three groups of 4…

What is the Maximum Capacity of a String in .NET

The theoretical capacity of a String maybe 2,147,483,647 (2 Billion), because the Length property of the String returns an int, so the maximum length of a String is Int32.MaxValue (2,147,483,647) characters. But in practical, Since no single object in a .NET…

See Windows Assemblies in Folder Structure

Normally, when you open the Windows Assemblies folder,  C:\Windows\assembly\ you should see a list of assemblies with detailed information, and without any directory structure. To see these assemblies in a proper folder structure, you may have to do a little…

Get all IP Addresses of the system in C#

First of all, the question arises,Can a computer have more than one IP? If a computer is connected to one network, then it can have only one unique IP Address. But if a computer is connected to more than one…