Click here to Skip to main content
15,887,477 members
Home / Discussions / C#
   

C#

 
GeneralRe: datagridview filtering....where to start? Pin
Stanciu Vlad26-May-10 10:05
Stanciu Vlad26-May-10 10:05 
GeneralRe: datagridview filtering....where to start? Pin
mprice21426-May-10 17:43
mprice21426-May-10 17:43 
GeneralRe: datagridview filtering....where to start? Pin
Stanciu Vlad26-May-10 20:43
Stanciu Vlad26-May-10 20:43 
GeneralRe: datagridview filtering....where to start? <Solved> Pin
mprice21426-May-10 18:52
mprice21426-May-10 18:52 
GeneralRe: datagridview filtering....where to start? Pin
Stanciu Vlad26-May-10 20:54
Stanciu Vlad26-May-10 20:54 
GeneralRe: datagridview filtering....where to start? Pin
mprice21427-May-10 3:13
mprice21427-May-10 3:13 
GeneralRe: datagridview filtering....where to start? Pin
Stanciu Vlad27-May-10 6:52
Stanciu Vlad27-May-10 6:52 
QuestionXML Serialization of derived classes Pin
Roland Bär7-May-10 12:35
Roland Bär7-May-10 12:35 
Hi
I wanted to ask if it is possible to do something like this and how to do it:

I would like to have a xml structure like this:
<root>
 <collection>
  <element />
  <element attribute="value" />
  <element />
 </collection>
 <something />
 <somethingother />
</root>


The elements in the collection should be of the type ElementBase if the attribute is not set or of the type ElementDerived if the attribute is set to a value (the second element).

So the Deserialized collection should be something like:
List<ElementBase> collection = new List<ElementBase>() { new ElementBase(), new ElementDerived(), new ElementBase() };

ElementDerived would be derived from ElementBase:

class ElementDerived : ElementBase {}


I hope my question is described clearly.

Thanks for your help Rose | [Rose]

Roland


Hi! I'm a signature virus. Copy me into your sig file and help me spread!

Follow your Euro notes in their tracks



AnswerRe: XML Serialization of derived classes Pin
Peace ON7-May-10 21:40
Peace ON7-May-10 21:40 
AnswerRe: XML Serialization of derived classes Pin
Stanciu Vlad7-May-10 23:20
Stanciu Vlad7-May-10 23:20 
Questionhow can i make a distributed system through C# ? Pin
Med7at7-May-10 11:30
Med7at7-May-10 11:30 
AnswerRe: how can i make a distributed system through C# ? Pin
Garth J Lancaster7-May-10 13:43
professionalGarth J Lancaster7-May-10 13:43 
AnswerRe: how can i make a distributed system through C# ? Pin
Member 41702067-May-10 15:04
Member 41702067-May-10 15:04 
GeneralRe: how can i make a distributed system through C# ? Pin
Med7at7-May-10 15:47
Med7at7-May-10 15:47 
AnswerRe: how can i make a distributed system through C# ? Pin
Peace ON7-May-10 19:44
Peace ON7-May-10 19:44 
Questionreturn number of records selected Pin
Abdul-Rhman Alsri7-May-10 11:21
Abdul-Rhman Alsri7-May-10 11:21 
AnswerRe: return number of records selected Pin
Dr.Walt Fair, PE7-May-10 12:27
professionalDr.Walt Fair, PE7-May-10 12:27 
AnswerRe: return number of records selected Pin
Member 41702067-May-10 15:07
Member 41702067-May-10 15:07 
AnswerRe: return number of records selected Pin
Peace ON7-May-10 19:53
Peace ON7-May-10 19:53 
AnswerRe: return number of records selected Pin
Saiyed Alam7-May-10 20:42
Saiyed Alam7-May-10 20:42 
AnswerRe: return number of records selected Pin
Abhinav S7-May-10 21:05
Abhinav S7-May-10 21:05 
GeneralRe: return number of records selected Pin
Johnny J.10-May-10 0:06
professionalJohnny J.10-May-10 0:06 
QuestionError connecting to a server Pin
tamash_ionut7-May-10 8:24
tamash_ionut7-May-10 8:24 
AnswerRe: Error connecting to a server Pin
Michel Godfroid7-May-10 20:45
Michel Godfroid7-May-10 20:45 
GeneralRe: Error connecting to a server Pin
tamash_ionut7-May-10 21:55
tamash_ionut7-May-10 21:55 

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.