>>>>E.g. I have middlewarebase class that has protected virtual property. I have middlewareMain class that has Invoke method and the two methods to set and return invokestring. I also have Sales class with the exact same methods of setting and getting that string.
>>>>
>>>>I set the invokestring in the MiddlewareMain and I need to read it in Sales class.
>>>
>>>Of course - if you set an instance property of classX, don't expect that this will change an instance property of classY
>>
>>But this is what I need. I need to set the string in one class and read it in the other class.
>
>Then I misunderstood what you want to do and Bonnie is right - a static property is the only way.
I actually asked this question in MSDN before posting here and I like the idea of Paul which is what we plan to do also
http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/c3b7fe03-f7d7-4e75-84c9-416b9dd1fc25/
If it's not broken, fix it until it is.
My Blog