ItemNo = null;
What are you trying to do? Assigning null to the string parameter or to a field of the datatable?>public InventoryDS.ItemsDataTable Find(string ItemNo, string description) >>> { >>> if (ItemNo.Equals(string.Empty)) >>> { ItemNo = DBNull.Value; } // Intellisense doesn't like it>Both parameters set to allow DbNull.
Nullable<int > myValue = null;
A reference type (string, classes) are values in the stack that point to values on the heap. When you declare a reference type as null, you are essentially point it at nothing.