Click here to Skip to main content
15,921,716 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Suggestions on using XmlTextReader to parse xml into an object tree. Pin
wout de zeeuw28-Jan-09 23:39
wout de zeeuw28-Jan-09 23:39 
GeneralRe: Suggestions on using XmlTextReader to parse xml into an object tree. Pin
led mike29-Jan-09 4:58
led mike29-Jan-09 4:58 
GeneralRe: Suggestions on using XmlTextReader to parse xml into an object tree. Pin
wout de zeeuw29-Jan-09 5:10
wout de zeeuw29-Jan-09 5:10 
GeneralRe: Suggestions on using XmlTextReader to parse xml into an object tree. Pin
led mike29-Jan-09 5:20
led mike29-Jan-09 5:20 
GeneralRe: Suggestions on using XmlTextReader to parse xml into an object tree. Pin
wout de zeeuw29-Jan-09 5:25
wout de zeeuw29-Jan-09 5:25 
GeneralRe: Suggestions on using XmlTextReader to parse xml into an object tree. Pin
Mark Churchill29-Jan-09 12:29
Mark Churchill29-Jan-09 12:29 
QuestionRestricting FileBrowserDialog to set of Folders Pin
Tristan Rhodes28-Jan-09 5:59
Tristan Rhodes28-Jan-09 5:59 
QuestionDataTable inheritance and Serialization "Constructor to deserialize an object" "was not found" Pin
dwolver27-Jan-09 6:09
dwolver27-Jan-09 6:09 
Ive got an object that I inherit from DataTable and the overloaded constructor shown below
When I try to deserialize it i get the error

"The constructor to deserialize an object of type 'MyLibrary.CSVImport' was not found.

[Serializable]
public class CSVImport : DataTable

public CSVImport():base()
{
}

Project is target 2.0

I must have something missing that I need to do in order to deserialize the object. Below is the code that does the testing

DataTable dt;
FileStream fs = new FileStream(s3, FileMode.Open);
CSVImport csv = new CSVImport(fs,out err);
csv.SetFirstRowAsHeader();

// test serialization
fs = new FileStream(@"C:\test.bin", FileMode.Create);
BinaryFormatter bf = new BinaryFormatter();
bf.Serialize(fs, dt);
fs.Close();

fs = null;
bf = null;
dt = null;

fs = new FileStream(@"C:\test.bin", FileMode.Open);
bf = new BinaryFormatter();
dt = (DataTable)bf.Deserialize(fs);// Boom! Does not like this..
fs.Close();
AnswerRe: DataTable inheritance and Serialization "Constructor to deserialize an object" "was not found" Pin
Wendelius27-Jan-09 10:23
mentorWendelius27-Jan-09 10:23 
GeneralRe: DataTable inheritance and Serialization "Constructor to deserialize an object" "was not found" Pin
dwolver27-Jan-09 11:07
dwolver27-Jan-09 11:07 
GeneralRe: DataTable inheritance and Serialization "Constructor to deserialize an object" "was not found" Pin
Wendelius27-Jan-09 11:11
mentorWendelius27-Jan-09 11:11 
QuestionNeed help with BindingSource Pin
kensai27-Jan-09 5:52
kensai27-Jan-09 5:52 
QuestionSupport to Microsoft Access database for Entity Framework in VS2008 ? Pin
WolveFred227-Jan-09 5:28
WolveFred227-Jan-09 5:28 
AnswerRe: Support to Microsoft Access database for Entity Framework in VS2008 ? Pin
Dave Kreskowiak27-Jan-09 7:59
mveDave Kreskowiak27-Jan-09 7:59 
AnswerRe: Support to Microsoft Access database for Entity Framework in VS2008 ? Pin
Eddy Vluggen29-Jan-09 2:00
professionalEddy Vluggen29-Jan-09 2:00 
GeneralRe: Support to Microsoft Access database for Entity Framework in VS2008 ? Pin
WolveFred229-Jan-09 2:14
WolveFred229-Jan-09 2:14 
GeneralRe: Support to Microsoft Access database for Entity Framework in VS2008 ? Pin
Eddy Vluggen29-Jan-09 2:29
professionalEddy Vluggen29-Jan-09 2:29 
GeneralRe: Support to Microsoft Access database for Entity Framework in VS2008 ? Pin
WolveFred229-Jan-09 2:51
WolveFred229-Jan-09 2:51 
GeneralRe: Support to Microsoft Access database for Entity Framework in VS2008 ? Pin
Eddy Vluggen29-Jan-09 3:12
professionalEddy Vluggen29-Jan-09 3:12 
QuestionAssembly-informations and Application-Properties problem! Pin
tschmid8526-Jan-09 23:19
tschmid8526-Jan-09 23:19 
QuestionRe: Assembly-informations and Application-Properties problem! Pin
led mike27-Jan-09 5:01
led mike27-Jan-09 5:01 
Questioncommunicating with a bar-code reader Pin
Subin Alex26-Jan-09 22:38
Subin Alex26-Jan-09 22:38 
AnswerRe: communicating with a bar-code reader Pin
SeMartens27-Jan-09 0:23
SeMartens27-Jan-09 0:23 
GeneralRe: communicating with a bar-code reader Pin
Luc Pattyn27-Jan-09 1:48
sitebuilderLuc Pattyn27-Jan-09 1:48 
AnswerCP IGNORE Pin
leckey27-Jan-09 9:50
leckey27-Jan-09 9:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.