Re: [ADVANCED-DOTNET] Xml Serialization with Collections

2007-05-17 Thread Mike Andrews
on -Original Message- From: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Ron Young Sent: Wednesday, May 16, 2007 12:47 PM To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Subject: Re: [ADVANCED-DOTNET] Xml Serialization with Collections If you add a setter for the Pers

Re: [ADVANCED-DOTNET] Xml Serialization with Collections

2007-05-16 Thread Ron Young
g Sent: Wednesday, May 16, 2007 12:47 PM To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Subject: Re: [ADVANCED-DOTNET] Xml Serialization with Collections If you add a setter for the Person.Documents property, you'll get the exception thrown at CollectionBase.WriteXml. If you then comment out

Re: [ADVANCED-DOTNET] Xml Serialization with Collections

2007-05-16 Thread Ron Young
ou want to be. Ron -Original Message- From: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Mike Andrews Sent: Wednesday, May 16, 2007 10:06 AM To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Subject: [ADVANCED-DOTNET] Xml Serialization with Collections I've go

Re: [ADVANCED-DOTNET] Xml Serialization with Collections

2007-05-16 Thread Alex Ivanoff
This article might give you some points: http://msdn.microsoft.com/msdnmag/issues/06/06/ClassToContract/. === This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com

[ADVANCED-DOTNET] Xml Serialization with Collections

2007-05-16 Thread Mike Andrews
I've got an issue with which I would appreciate some assistance in its resolution. I've got a complex business object that used for a website. The website programmers need to serialize the object to viewstate. This process works quite well as it stands now. Now an issue has arisen that requires

Re: [ADVANCED-DOTNET] XML Serialization...

2006-07-13 Thread Mike Andrews
Here's a generic method that I wrote that serializes a data type to a string: /// /// Builds the Serialized xml that represents the specified object /// /// private string GetSerializedXML(ItemType item) { //Serialze this object and send to the w

Re: [ADVANCED-DOTNET] XML Serialization...

2006-07-13 Thread Mike Andrews
I agree and I had taken your position already. I didn't want the business layer to contain all the xml serialziation stuff; to me, that's just bloat. As a result, I'm taking a webservice and only having a few methods that take an xml document as a request and send an xml document as a response.

Re: [ADVANCED-DOTNET] XML Serialization...

2006-07-12 Thread Don Demsak
Mike, Check out this post by Matt Berther, "Web service and custom serialization" http://www.mattberther.com/2006/05/000755.html. In that post, Matt is running into issues where he is trying to reuse his business objects as message objects, because he doesn't want " two copies of the objects",

Re: [ADVANCED-DOTNET] XML Serialization...

2006-07-12 Thread Mike Andrews
Steele Microsoft .NET MVP http://weblogs.asp.net/psteele -Original Message- From: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Mike Andrews Sent: Wednesday, July 12, 2006 3:26 PM To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Subject: Re: [ADVANCED-DOTNET] XML Serialization...

Re: [ADVANCED-DOTNET] XML Serialization...

2006-07-12 Thread Mike Andrews
erialize it. -- Patrick Steele Microsoft .NET MVP http://weblogs.asp.net/psteele -Original Message- From: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Mike Andrews Sent: Wednesday, July 12, 2006 3:26 PM To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Subject: Re: [AD

Re: [ADVANCED-DOTNET] XML Serialization...

2006-07-12 Thread Patrick Steele
n of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Mike Andrews Sent: Wednesday, July 12, 2006 3:26 PM To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Subject: Re: [ADVANCED-DOTNET] XML Serialization... I'm having a new problem now. I can't get one of my properties that returns a

Re: [ADVANCED-DOTNET] XML Serialization...

2006-07-12 Thread Mike Andrews
006 11:46 AM To: Discussion of advanced .NET topics. Subject: RE: [ADVANCED-DOTNET] XML Serialization... class Patient { [XmlArray("Allergy", typeof(Allergy)] public IList Alergies{ get{} set{}} } From: Discussion of advanced .NET topics. on behalf of

Re: [ADVANCED-DOTNET] XML Serialization...

2006-07-12 Thread Mike Andrews
___ From: Discussion of advanced .NET topics. on behalf of Mike Andrews Sent: Wed 7/12/2006 10:50 AM To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Subject: [ADVANCED-DOTNET] XML Serialization... Guys, I have a serialization question that I need help with. I have and object that I'm serializing

Re: [ADVANCED-DOTNET] XML Serialization...

2006-07-12 Thread Jef Newsom
.NET topics. Subject: RE: [ADVANCED-DOTNET] XML Serialization... class Patient { [XmlArray("Allergy", typeof(Allergy)] public IList Alergies{ get{} set{}} } From: Discussion of advanced .NET topics. on behalf of Mike Andrews Sent: Wed 7/1

Re: [ADVANCED-DOTNET] XML Serialization...

2006-07-12 Thread Jef Newsom
class Patient { [XmlArray("Allergy", typeof(Allergy)] public IList Alergies{ get{} set{}} } From: Discussion of advanced .NET topics. on behalf of Mike Andrews Sent: Wed 7/12/2006 10:50 AM To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Subject: [ADVANCED-D

[ADVANCED-DOTNET] XML Serialization...

2006-07-12 Thread Mike Andrews
Guys, I have a serialization question that I need help with. I have and object that I'm serializing and I've got that to work. Now, the object has some collection properties. However when it serializes it, it produces output similar to this: However, I need it to produce outp

Re: [ADVANCED-DOTNET] XML Serialization

2003-06-06 Thread Mohamed Benyounes
)value; } } } } -Original Message- From: Christoph Schittko [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 12:15 PM To: [EMAIL PROTECTED] Subject: Re: [ADVANCED-DOTNET] XML Seriali

Re: [ADVANCED-DOTNET] XML Serialization

2003-06-06 Thread Mohamed Benyounes
} } -Original Message- From: Christoph Schittko [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 12:15 PM To: [EMAIL PROTECTED] Subject: Re: [ADVANCED-DOTNET] XML Serialization > [System.Xml.Serialization.XmlTypeAttribute( > TypeName = "

Re: [ADVANCED-DOTNET] XML Serialization

2003-06-05 Thread Christoph Schittko
> [System.Xml.Serialization.XmlTypeAttribute( > TypeName = "SensorID.Reader.Agile")] > public class AgileReaderSettings : IReaderSettings > { >private int m_noAntennas; >private string m_ipAddress; >private int m_port; >private int m_autoIDTimeout; >private int m_s

Re: [ADVANCED-DOTNET] XML Serialization

2003-06-05 Thread Akshay Arora
> [System.Xml.Serialization.XmlTypeAttribute( > TypeName = "SensorID.Reader.Agile")] > public class AgileReaderSettings : IReaderSettings > { >private int m_noAntennas; >private string m_ipAddress; >private int m_port; >private int m_autoIDTimeout; >private int m_s

[ADVANCED-DOTNET] XML Serialization

2003-06-05 Thread Mohamed Benyounes
Hi, I am serializing a class that contains int and string type members and an arrayList of enumerated type. Here is are the members of my class: [System.Xml.Serialization.XmlTypeAttribute( TypeName = "SensorID.Reader.Agile")] public class AgileReaderSettings : IReaderSettings { priv

Re: [ADVANCED-DOTNET] Xml Serialization exception (bug?) with private nested classe s

2003-03-07 Thread Marsh, Drew
Ed Evans [mailto:[EMAIL PROTECTED] wrote: > The code below throws a strange exception. You'd expect it to > complain that FooStuff is inaccessable because it's private, > but instead it says: "File or assembly name giy710lb.dll, or > one of its dependencies, was not found." And to confuse the > ma

[ADVANCED-DOTNET] Xml Serialization exception (bug?) with private nested classes

2003-03-07 Thread Ed Evans
The code below throws a strange exception. You'd expect it to complain that FooStuff is inaccessable because it's private, but instead it says: "File or assembly name giy710lb.dll, or one of its dependencies, was not found." And to confuse the matter, the missing assembly in question is different e