demoXML = "Stringja";
CountryStorageFactory csf = new CountryStorageFactory();
CountryStorage cs = new CountryStorage();
using (TextReader tr = new StringReader( demoXML ))
{
cs = csf.CreateCountryListFromTextReader( tr );
}
MemoryStream ms = new MemoryStream( System.Text.Encoding.UTF8.GetBytes( demoXML ) );
CountryStorageFactory csf = new CountryStorageFactory();
CountryStorage cs = new CountryStorage();
using (StreamReader sr = new StreamReader( ms ))
{
cs = csf.CreateCountryListFromTextReader( sr );
}
ไม่มีความคิดเห็น:
แสดงความคิดเห็น