Home

Why do we need Serialization?

When you create an object in a .NET or Java application, you don’t need to think about how it is stored in memory, because the .NET/Java framework takes care of that for you and does the necessary serialization. What about…

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…

Difference between ref and out keywords in C#

ref and out are pretty much like the pointers as in C/C++, they deal with the memory location of the object instead of the object directly.Mostly ref and out keywords are used in the method’s parameters ref void myFunction(ref Student obj); ref means that…

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…