View Single Post
  #1 (permalink)  
Old August 1st, 2003, 03:18 AM
crystallac crystallac is offline
Registered User
Join Date: Jul 2003
Location: shenzhen, guangdong, China.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to crystallac
Default error cs0234-come from the example of a wrox book


// C#Example01.cs
using System;
using System.Xml;   //my marker: error cs0234 ÐÐ
using System.Text;
using System.IO;

namespace myApp
  class mainClass
    static void Main(string[] args)
      FileStream myFile = new FileStream("test.xml", FileMode.Open);
      XmlTextReader myReader = new XmlTextReader(myFile);
      Console.Write("{0,-20}{1,-20}{2,-20}\n", "Type", "Name", "Value");
      Console.Write("{0,-20}{1,-20}{2,-20}\n", "--------------------",
                    "--------------------", "--------------------");
                      myReader.Name, myReader.Value);

<?xml version="1.0"?>
&nbsp;&nbsp;&nbsp;<name>Alfred Q. Anybody</name>
&nbsp;&nbsp;&nbsp;<address>123 Anywhere Road</address>

>csc Example01.cs&nbsp;&nbsp;
error cs0234 ...

Example01.cs and test.xml is in the same fold.
why? please.
Reply With Quote