custom attributes

  • Thread starter Thread starter Steven Van Loon
  • Start date Start date
S

Steven Van Loon

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.
 
You mean at runtime?? I don't think that is possible. Attributes (as the
name implies) are read-only.

-vJ
 
Back
Top