Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
C# and XmlTextReader
Message
 
À
08/01/2004 23:49:48
Keith Payne
Technical Marketing Solutions
Floride, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00864609
Message ID:
00874861
Vues:
10
>if (tr.Name == "StyleBlockName")

C# strings works as objects. You should use the String.CompareTo() method to compare a string variable/property to another string. Like this:
if (tr.Name.CompareTo("StyleBlockName") == 0)
HTH,
- Erik Niese-Petersen

Crazy Dane in USA.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform