ExtensionMethod.NET Home of 880 C#, Visual Basic, F# and Javascript extension methods
Object to decimal?
private decimal? ToDecimal(Object obj) { decimal result = 0; if (obj == null) return null; if (decimal.TryParse(obj.ToString(), out result)) return result; return null; }
ToDecimal(row["col"]
Author: Tomcat
Submitted on: 6 sep. 2016
Language: C#
Type: Object to decimal?
Views: 3150