Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can one class set a property to be seen by another c
Message
From
27/02/2013 10:04:09
 
 
To
27/02/2013 09:59:19
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01566989
Message ID:
01567048
Views:
24
>>>>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.

>>
>>And that's what I thought you meant from the beginning! It'll need to be to be static ...
>>
>
>Yeah - but static means common to all instances - don't know whether that is a good solution here


Yeah, I know ... but it sounded like Naomi needed to read the property outside of an instance of the class. I probably still am misunderstanding her intent.

~~Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform