Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can one class set a property to be seen by another c
Message
De
27/02/2013 10:04:09
 
 
À
27/02/2013 09:59:19
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01566989
Message ID:
01567048
Vues:
25
>>>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform