Click here to Skip to main content
16,005,473 members
Home / Discussions / C#
   

C#

 
QuestionDerived class constructors Pin
~~~Johnny~~~21-May-07 7:08
~~~Johnny~~~21-May-07 7:08 
AnswerRe: Derived class constructors Pin
Not Active21-May-07 7:15
mentorNot Active21-May-07 7:15 
AnswerRe: Derived class constructors Pin
Dave Kreskowiak21-May-07 7:24
mveDave Kreskowiak21-May-07 7:24 
GeneralRe: Derived class constructors Pin
~~~Johnny~~~21-May-07 7:36
~~~Johnny~~~21-May-07 7:36 
GeneralRe: Derived class constructors Pin
Dave Kreskowiak21-May-07 8:24
mveDave Kreskowiak21-May-07 8:24 
AnswerRe: Derived class constructors Pin
Dave Herren21-May-07 7:41
Dave Herren21-May-07 7:41 
GeneralRe: Derived class constructors Pin
~~~Johnny~~~21-May-07 8:12
~~~Johnny~~~21-May-07 8:12 
GeneralRe: Derived class constructors Pin
Dave Herren21-May-07 9:48
Dave Herren21-May-07 9:48 
Microsoft documentation says the GetChanges method:
Gets a copy of the DataTable containing all changes made to it since it was last loaded, or since AcceptChanges was called.

My guess is that it is using DataTable.Clone and the documentation on DataTable.Clone notes that "If these classes have been derived, the clone will also be of the same derived classes". See Documentation.[^]

So it is copying your instance (which is of MyType) and returning it as a DataTable. Overriding DataTable.Clone or GetChanges might fix your problem.

topcoderjax

GeneralRe: Derived class constructors Pin
~~~Johnny~~~21-May-07 10:37
~~~Johnny~~~21-May-07 10:37 
Question.net test question bank creator Pin
rajantawate1(http//www.tawateventures.com21-May-07 7:02
rajantawate1(http//www.tawateventures.com21-May-07 7:02 
AnswerRe: .net test question bank creator Pin
Not Active21-May-07 7:09
mentorNot Active21-May-07 7:09 
QuestionHow to take mysql backup through .Net Pin
Joe Rozario21-May-07 6:43
Joe Rozario21-May-07 6:43 
AnswerRe: How to take mysql backup through .Net Pin
~~~Johnny~~~21-May-07 8:52
~~~Johnny~~~21-May-07 8:52 
QuestionEXIF Data - How to compute APEX values? Pin
matthias s.21-May-07 6:37
matthias s.21-May-07 6:37 
QuestionHow can I validate NumericUpDown while editing Pin
TooDoo21-May-07 5:55
TooDoo21-May-07 5:55 
AnswerRe: How can I validate NumericUpDown while editing Pin
Not Active21-May-07 6:14
mentorNot Active21-May-07 6:14 
AnswerRe: How can I validate NumericUpDown while editing Pin
Are Jay21-May-07 7:52
Are Jay21-May-07 7:52 
GeneralRe: How can I validate NumericUpDown while editing Pin
TooDoo21-May-07 23:08
TooDoo21-May-07 23:08 
GeneralRe: How can I validate NumericUpDown while editing Pin
Are Jay22-May-07 3:36
Are Jay22-May-07 3:36 
GeneralRe: How can I validate NumericUpDown while editing Pin
TooDoo22-May-07 4:02
TooDoo22-May-07 4:02 
GeneralRe: How can I validate NumericUpDown while editing Pin
Are Jay22-May-07 4:22
Are Jay22-May-07 4:22 
QuestionAdd items to Menu at Runtime Pin
Rick van Woudenberg21-May-07 5:28
Rick van Woudenberg21-May-07 5:28 
AnswerRe: Add items to Menu at Runtime Pin
led mike21-May-07 5:52
led mike21-May-07 5:52 
QuestionNightmare StreamReader! Pin
Lordveralix21-May-07 5:18
Lordveralix21-May-07 5:18 
AnswerRe: Nightmare StreamReader! Pin
Sathesh Sakthivel21-May-07 5:23
Sathesh Sakthivel21-May-07 5:23 

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.