Click here to Skip to main content
15,889,216 members
Home / Discussions / C#
   

C#

 
GeneralRe: Work with Processes! Pin
ventomito26-Oct-05 5:44
ventomito26-Oct-05 5:44 
GeneralRe: Work with Processes! Pin
Sasuko26-Oct-05 7:35
Sasuko26-Oct-05 7:35 
GeneralRe: Work with Processes! Pin
ventomito27-Oct-05 3:16
ventomito27-Oct-05 3:16 
GeneralRe: Work with Processes! Pin
Tom Larsen26-Oct-05 8:28
Tom Larsen26-Oct-05 8:28 
GeneralRe: Work with Processes! Pin
ventomito27-Oct-05 3:23
ventomito27-Oct-05 3:23 
GeneralRe: Work with Processes! Pin
Dan Neely27-Oct-05 3:51
Dan Neely27-Oct-05 3:51 
GeneralRe: Work with Processes! Pin
Dan Neely26-Oct-05 8:36
Dan Neely26-Oct-05 8:36 
QuestionXmlSerializer and custom collections with properties Pin
mav.northwind26-Oct-05 4:57
mav.northwind26-Oct-05 4:57 
Hi guys!
XmlSerializer is giving me troubles again... Frown | :(
I have a custom collection (derived from CollectionBase) that I want to serialize.
In addition to just holding the items I want the collection to have additional properties like a name, for example:
[Serializable]
MyCollection : CollectionBase
{
  public MyCollection() {}
  public MyCollection(string name)
  {
    this._name = name;
  }
  
  private string _name;
  public string Name
  {
    get { return _name; }
    set { _name = value; }
  }
 
  ... overrides for CollectionBase methods ...
}

The problem is that XmlSerializer serializes the items, but doesn't serialize a single of my additional properties.

Does anyone know what I can do?

TIA,
mav
AnswerRe: XmlSerializer and custom collections with properties Pin
Tom Larsen26-Oct-05 5:10
Tom Larsen26-Oct-05 5:10 
AnswerRe: XmlSerializer and custom collections with properties Pin
mav.northwind26-Oct-05 6:05
mav.northwind26-Oct-05 6:05 
AnswerRe: XmlSerializer and custom collections with properties Pin
leppie26-Oct-05 7:58
leppie26-Oct-05 7:58 
QuestionForms/Controls Orientation Pin
thanhvan26-Oct-05 4:56
thanhvan26-Oct-05 4:56 
QuestionCall a method from the auto generated InitializeComponent() method in Visual Studio Pin
monteiz26-Oct-05 4:50
monteiz26-Oct-05 4:50 
QuestionArraylist Pin
PaulaM26-Oct-05 3:58
PaulaM26-Oct-05 3:58 
AnswerRe: Arraylist Pin
Rob Philpott26-Oct-05 4:38
Rob Philpott26-Oct-05 4:38 
QuestionHow can I get the Windows temporal directory variable??? Pin
User 197776926-Oct-05 3:17
User 197776926-Oct-05 3:17 
AnswerRe: How can I get the Windows temporal directory variable??? Pin
leppie26-Oct-05 4:08
leppie26-Oct-05 4:08 
GeneralRe: How can I get the Windows temporal directory variable??? Pin
User 197776927-Oct-05 7:15
User 197776927-Oct-05 7:15 
QuestionHow to merge two cells vertically in a Windows forms data grid? Pin
26-Oct-05 2:08
suss26-Oct-05 2:08 
QuestionHow to implement a VC++ toolbar like control in C#? Pin
TinyTin26-Oct-05 2:01
TinyTin26-Oct-05 2:01 
AnswerRe: How to implement a VC++ toolbar like control in C#? Pin
Suelinda_W31-Oct-05 3:11
Suelinda_W31-Oct-05 3:11 
QuestionDLL or Component for RFID KITS Pin
Tyler4526-Oct-05 1:57
Tyler4526-Oct-05 1:57 
AnswerRe: DLL or Component for RFID KITS Pin
Dave Kreskowiak26-Oct-05 3:27
mveDave Kreskowiak26-Oct-05 3:27 
GeneralRe: DLL or Component for RFID KITS Pin
Tyler4510-Nov-05 13:46
Tyler4510-Nov-05 13:46 
QuestionThrad problem Pin
hg270526-Oct-05 1:04
hg270526-Oct-05 1:04 

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.