I have a subrountine and it is used by ten classes in code-behind file.
How am I able use the subrountine just writing one time instead of ten times?
Does anyone have tried or idea ?
Thanks,
*EverLearner*Hi,
First of all it should be public. Then you can use it directly in one class and access through instance of first class in all others. You can define subroutine as shared (static) to access it through type instead of instance.
You could make a overclass with the subroutine and then make the 10 classes as extends of this class adding the other subroutings and attributs you need.
I am sorry. I am not an advanced programmer yet.
Please explain clearly...
:)
0 comments:
Post a Comment