isNumeric, among others

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bernardo Heynemann

    #1

    isNumeric, among others

    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: bernardo@bancob va.com.br
    Site: http://www.bancobva.com.br
    Phone: (5521) 3231-1100 R:1237


  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: isNumeric, among others

    Bernardo,

    The IsNumeric function is a function of VB, and you can find it by
    setting a reference to Microsoft.Visua lBasic.dll. The function is static,
    and is on the Information class in the Microsoft.Visua lBasic 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.


    --
    - Nicholas Paldino [.NET/C# MVP]
    - mvp@spam.guard. caspershouse.co m

    "Bernardo Heynemann" <bernardo@banco bva.com.br> wrote in message
    news:u7uR4XEtDH A.980@TK2MSFTNG P10.phx.gbl...[color=blue]
    > 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[/color]
    them[color=blue]
    > 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: bernardo@bancob va.com.br
    > Site: http://www.bancobva.com.br
    > Phone: (5521) 3231-1100 R:1237
    >
    >[/color]


    Comment

    Working...