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
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
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
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
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
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
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.
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",
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...
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
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
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
___
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
.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
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
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
)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
}
}
-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 = "
> [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
> [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
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
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
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
23 matches
Mail list logo