isNumeric, among others

  • Thread starter Thread starter Nicholas Paldino [.NET/C# MVP]
  • Start date Start date
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.
 
I couldn´t find the isNumeric function last night.
So I did my own.
But what do you think of Common Functions? What´s the best way to keep them
in my ASP.NET (C#) project?
One class PublicCode with them all? Just spread among all classes?

Thanx for any help!
--
Bernardo Heynemann
Developer ASP / VB @ Banco BVA S/A Brazil
E-Mail: (e-mail address removed)
Site: http://www.bancobva.com.br
Phone: (5521) 3231-1100 R:1237
 
Back
Top