custom attributes

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Steven Van Loon

    #1

    custom attributes

    Is it possible (and if it is, how is it done) to change custom attributes?
    e.g. if I have an pooled class like this

    [ObjectPooling (Enabled=true, MinPoolSize=2, MaxPoolSize=10,
    CreationTimeout =5000]
    public class SomePooledClass { ... }

    Can I let the user specify / change MinPoolSize, MaxPoolSize and
    CreationTimeout ?

    Thanks!
    Steven.


  • Vijaye Raji

    #2
    Re: custom attributes

    You mean at runtime?? I don't think that is possible. Attributes (as the
    name implies) are read-only.

    -vJ

    "Steven Van Loon" <steven.vanloon @invenso.com> wrote in message
    news:%23P4YlLYu DHA.3196@TK2MSF TNGP11.phx.gbl. ..[color=blue]
    > Is it possible (and if it is, how is it done) to change custom attributes?
    > e.g. if I have an pooled class like this
    >
    > [ObjectPooling (Enabled=true, MinPoolSize=2, MaxPoolSize=10,
    > CreationTimeout =5000]
    > public class SomePooledClass { ... }
    >
    > Can I let the user specify / change MinPoolSize, MaxPoolSize and
    > CreationTimeout ?
    >
    > Thanks!
    > Steven.
    >
    >[/color]


    Comment

    Working...