| |
| Recipe 3.8: Modifying Properties of an Attribute or Method at Runtime |
Last Updated: Sep 8, 2003
Status: Draft
|
|
|
|
How important is this problem to you?
(Login to Vote)
1.00 Rating, 1 Vote
|
|
How acceptable is the proposed solution?
(Login to Vote)
0.00 Rating, 0 Votes
|
|
Problem:
You want to modify the properties of an attribute or method at runtime; for example, you want to make a private method public.
Solution:
Replace the definition of the method, using an anonymous method with the properties you want:
MyClass.bar = method is public (... args ...) { ... }; # with signature
Issue:
Nope, there should be an easier way, like maybe MyClass.bar is public;
|
|