You can create a public property instead of a variable of type string and put that in a public class, then you inherit that class into the one you are using and can therefore, easily access that property's value.
Hope that helps :)
KushMishra 38 Senior Technical Lead
KushMishra 38 Senior Technical Lead
KushMishra 38 Senior Technical Lead
KushMishra 38 Senior Technical Lead