fiogf49gjkf0d Just keep in mind that decimal? is a nullable object.
So, if you have this code:
decimal? SalesPotential = null;
if you then do:
decimal sp = System.Convert.ToDecimal(SalesPotential);
you will probably end up with an exception
Better off testing your object:
if (SalesPotential.HasValue)
{
//do something
decimal sp = SalesPotential.Value; (The Value property of SalesPotential is actually defined as decimal
}
Here is some reference material for Nullable Object Types:
http://msdn.microsoft.com/en-us/library/1t3y8s4s(v=vs.80).aspx
|