N
Nicholas Paldino [.NET/C# MVP]
Bernardo,
The IsNumeric function is a function of VB, and you can find it by
setting a reference to Microsoft.VisualBasic.dll. The function is static,
and is on the Information class in the Microsoft.VisualBasic namespace.
As for common functions, I would make them static, and make sure they
are accessible, by placing them in a frequently-referenced assembly.
However, I wouldn't put them all on one class. Rather, I would place them
where they would be logically located. For example, if you have a Customer
object, and you have a static function GetCustomers, which gets lists of
Customer objects, I would make sure the GetCustomers method is on the
Customer class.
Hope this helps.
The IsNumeric function is a function of VB, and you can find it by
setting a reference to Microsoft.VisualBasic.dll. The function is static,
and is on the Information class in the Microsoft.VisualBasic namespace.
As for common functions, I would make them static, and make sure they
are accessible, by placing them in a frequently-referenced assembly.
However, I wouldn't put them all on one class. Rather, I would place them
where they would be logically located. For example, if you have a Customer
object, and you have a static function GetCustomers, which gets lists of
Customer objects, I would make sure the GetCustomers method is on the
Customer class.
Hope this helps.