Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C# and XmlTextReader
Message
 
To
08/01/2004 23:49:48
Keith Payne
Technical Marketing Solutions
Florida, United States
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00864609
Message ID:
00874861
Views:
11
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform