S
shapper
Hello,
I have various classes in a project and all them use a few common
properties.
So I created a new class, named Config, with all those properties so I
don't need to define those properties in all classes.
My problem is how to make the Config properties accessible in my other
classes.
For example, I would like to use something like:
Dim myConfig As MyNamespace.Config
myConfig.Property_A = "PropertyA"
myConfig.Property_B = "PropertyB"
Dim myClass1 As MyNamespace.Class1
Class1.RunMethod1
And myClass1 would use PropertyA and PropertyB without needing to
define them in myClass1 itself.
Any idea how to create this?
Thanks,
Miguel
I have various classes in a project and all them use a few common
properties.
So I created a new class, named Config, with all those properties so I
don't need to define those properties in all classes.
My problem is how to make the Config properties accessible in my other
classes.
For example, I would like to use something like:
Dim myConfig As MyNamespace.Config
myConfig.Property_A = "PropertyA"
myConfig.Property_B = "PropertyB"
Dim myClass1 As MyNamespace.Class1
Class1.RunMethod1
And myClass1 would use PropertyA and PropertyB without needing to
define them in myClass1 itself.
Any idea how to create this?
Thanks,
Miguel