tag:blogger.com,1999:blog-872785729652921823.comments2023-10-31T10:15:05.210-05:00Muhammad Haroon's WebLogMuhammad Haroonhttp://www.blogger.com/profile/14223832346858952477noreply@blogger.comBlogger30125tag:blogger.com,1999:blog-872785729652921823.post-51124005303447814582018-06-16T13:54:49.290-05:002018-06-16T13:54:49.290-05:00When I originally commented I clicked the -Notify ...When I originally commented I clicked the -Notify me when new comments are added- checkbox and now each time a comment is added I get four emails with the same comment. Is there any manner you can take away me from that service? Thanks! <a href="https://online-casinos.us.org" rel="nofollow">casino games</a>Anonymoushttps://www.blogger.com/profile/07548601621605221297noreply@blogger.comtag:blogger.com,1999:blog-872785729652921823.post-77214693171217884122012-10-03T11:16:21.364-05:002012-10-03T11:16:21.364-05:00ur da biz manur da biz manAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-872785729652921823.post-71309445534467603752010-02-14T07:47:44.914-06:002010-02-14T07:47:44.914-06:00Works great. Thank you. DanWorks great. Thank you. DanGreenohttps://www.blogger.com/profile/08642773267793513411noreply@blogger.comtag:blogger.com,1999:blog-872785729652921823.post-37349962333360460492009-09-18T11:38:42.859-05:002009-09-18T11:38:42.859-05:00grea8 man.......... i m loking 4 this... thnx a to...grea8 man.......... i m loking 4 this... thnx a ton.!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-872785729652921823.post-13081956228568888452009-03-24T01:06:00.000-05:002009-03-24T01:06:00.000-05:00great ! really helped me dudegreat ! really helped me dudeJitendra Patilhttps://www.blogger.com/profile/12081605350045076436noreply@blogger.comtag:blogger.com,1999:blog-872785729652921823.post-29908858989202850772009-02-12T02:58:00.000-06:002009-02-12T02:58:00.000-06:00Thanks for the post. You helped me a big deal!Thanks for the post. You helped me a big deal!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-872785729652921823.post-35910766021841493282009-02-12T02:26:00.000-06:002009-02-12T02:26:00.000-06:00Thanks for this post.One step further, what do I d...Thanks for this post.<BR/><BR/>One step further, what do I do, if the user wants paging back?<BR/><BR/>reply soonAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-872785729652921823.post-72675110159167997422008-12-24T07:09:00.000-06:002008-12-24T07:09:00.000-06:00Thanks a lot DudeHelped me a lotThanks a lot Dude<BR/>Helped me a lotAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-872785729652921823.post-46490718038714519702008-12-18T13:41:00.000-06:002008-12-18T13:41:00.000-06:00Muhammad,This might sound silly, but would you ple...Muhammad,<BR/><BR/>This might sound silly, but would you please confirm that you are releasing your modifications to Simon Hewitt's code into the public domain and that you retain no copyrights and such on it?<BR/><BR/>Thanks,<BR/>OdiOdihttps://www.blogger.com/profile/10236877816454964474noreply@blogger.comtag:blogger.com,1999:blog-872785729652921823.post-9615642520228475592008-09-26T06:26:00.000-05:002008-09-26T06:26:00.000-05:00Has anyone tried any of these solutions where the ...Has anyone tried any of these solutions where the derived classes are in a different assembly AND the derived xml elements are in a different XML-namespace?<BR/><BR/>I've tried all these techniques but I keep getting the "&ltMyType xmlns='MyNamespace'&gt was not expected" error.<BR/><BR/>I've got two schemas - the first defines the abstract base in one namespace,Unknownhttps://www.blogger.com/profile/03328105929097316761noreply@blogger.comtag:blogger.com,1999:blog-872785729652921823.post-37359888750011189362008-09-04T09:56:00.000-05:002008-09-04T09:56:00.000-05:00Is there any way to create custom name instead cla...Is there any way to create custom name instead class name in the generated XML?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-872785729652921823.post-26842951809747304552008-08-17T13:36:00.000-05:002008-08-17T13:36:00.000-05:00birsch your method works but there is a bug in the...birsch your method works but there is a bug in the ReadXML function.<BR/>The reader is not at the right position when exiting. You should call reader.Skip at the end.<BR/><BR/>Check this : <BR/>http://forums.xna.com/forums/p/15939/83573.aspxnoonhttps://www.blogger.com/profile/07089265700629602269noreply@blogger.comtag:blogger.com,1999:blog-872785729652921823.post-82103007419452345452008-02-04T23:30:00.000-06:002008-02-04T23:30:00.000-06:00Thank you very much for posting & sharing the code...Thank you very much for posting & sharing the codes. What I love about it, is...the code works! I've been looking at how I can implement this.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-872785729652921823.post-83086448950183932362008-01-17T02:10:00.000-06:002008-01-17T02:10:00.000-06:00Here's a takeoff on the Generics List solution. It...Here's a takeoff on the Generics List solution. It doesn't require adding any additional information to your interface or XMLs. Instead it uses the actual list element tag to reconstruct and deserialize the object. <BR/><BR/>NOTE: This solution was also modified to skip whitespaces and remove annoying xsi attributes.<BR/><BR/>Items in the list will be written to XML using the real class name, as birschhttps://www.blogger.com/profile/16415010994202681258noreply@blogger.comtag:blogger.com,1999:blog-872785729652921823.post-4448364950840779912007-08-09T14:50:00.000-05:002007-08-09T14:50:00.000-05:00Moonshield,Thanks you very much for your comment. ...Moonshield,<BR/><BR/>Thanks you very much for your comment. It helped me out tremendiously.Brandonhttps://www.blogger.com/profile/02963959998135441059noreply@blogger.comtag:blogger.com,1999:blog-872785729652921823.post-2085215190055051872007-07-19T19:42:00.000-05:002007-07-19T19:42:00.000-05:00Hi Fusai, I had the same problem with generics lis...Hi Fusai, <BR/><BR/>I had the same problem with generics list and here is what I’ve done.<BR/>I have a Filter object that one of its properties was a List< Criteria > that I was unable to serialize/deserialize properly with the technique proposed above.<BR/>Like you, Criteria is my base class for others like ClientCriteria, InvoiceCriteria etc.<BR/><BR/>First of all, I got rid of my List< Unknownhttps://www.blogger.com/profile/04696240585128630582noreply@blogger.comtag:blogger.com,1999:blog-872785729652921823.post-31984448713991399402007-07-11T12:21:00.000-05:002007-07-11T12:21:00.000-05:00Fusai, no, I am afraid that won't work. For this ...Fusai, no, I am afraid that won't work. For this to work, you'll have to add the "[XmlElement(Type=...)]" attribute to the item property of the list itself. This attribute basically tells .NET that the property it's been applied to should be serialized using the base class type specified in the attribute. I hope it makes sense.Muhammad Haroonhttps://www.blogger.com/profile/14223832346858952477noreply@blogger.comtag:blogger.com,1999:blog-872785729652921823.post-28521179754129431542007-07-11T10:10:00.000-05:002007-07-11T10:10:00.000-05:00sorry, I didn't explain very well..what I have is ...sorry, I didn't explain very well..<BR/><BR/>what I have is a list of object of the BaseClass type, not a list of lists. <BR/><BR/>The problem is that every object in the list belongs to a different type, InheritedClass1 and InheritedClass2, ecc..<BR/><BR/>the property that i have made exposes the entire list, and I want to serialize this property.<BR/><BR/>do I have to tag with "[XmlElement(TypeR. Fusaihttps://www.blogger.com/profile/11945348310312260796noreply@blogger.comtag:blogger.com,1999:blog-872785729652921823.post-64903681314438882202007-07-10T08:41:00.000-05:002007-07-10T08:41:00.000-05:00fusai, what you have here is a list of lists. The...fusai, what you have here is a list of lists. The technique mentioned in this article doesn't care about the actual data structure you are using. As long as base class properties can be XML serialized, and you use proper attributes on the public properties of the (container) class being serialized, this technique should work just fine.Muhammad Haroonhttps://www.blogger.com/profile/14223832346858952477noreply@blogger.comtag:blogger.com,1999:blog-872785729652921823.post-30099507609201367552007-07-10T07:13:00.000-05:002007-07-10T07:13:00.000-05:00What about List<baseClass> ?________________...What about List<baseClass> ?<BR/>__________________________________<BR/>I have this situation:<BR/><BR/>class Container<BR/>{<BR/>List<myBaseClasses> _list;<BR/>List<myBaseClasses> List { get and set on _list }<BR/><BR/>void SetupList() { <BR/>_list.Add(new myInheritedClass1());<BR/>_list.Add(new myInheritedClass2());<BR/>}<BR/>}<BR/><BR/>where both myInheritedClass1 and R. Fusaihttps://www.blogger.com/profile/11945348310312260796noreply@blogger.comtag:blogger.com,1999:blog-872785729652921823.post-1578033222540799412007-06-13T21:50:00.000-05:002007-06-13T21:50:00.000-05:00Jeremy, I am not sure what you mean by "a base col...Jeremy, I am not sure what you mean by "a base collection within the collection". If you can elaborate, I might be able to help.Muhammad Haroonhttps://www.blogger.com/profile/14223832346858952477noreply@blogger.comtag:blogger.com,1999:blog-872785729652921823.post-6551917666455272192007-06-13T19:14:00.000-05:002007-06-13T19:14:00.000-05:00what if i had a base collection within the collect...what if i had a base collection within the collection? could you show an example of thatUnknownhttps://www.blogger.com/profile/12027628009185196722noreply@blogger.comtag:blogger.com,1999:blog-872785729652921823.post-74052368534850551682007-05-13T09:17:00.000-05:002007-05-13T09:17:00.000-05:00Muhammad, with this post you saved my day!Thank yo...Muhammad, with this post you saved my day!<BR/><BR/>Thank you!<BR/>NicolaAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-872785729652921823.post-67529106089023371802007-03-07T12:27:00.000-06:002007-03-07T12:27:00.000-06:00In (1) what I am referring to is that e.g. if you ...In (1) what I am referring to is that e.g. if you have a property in a class of some base class type, you need to place this attribute on that property.<BR/><BR/>Example:<BR/><BR/>[XmlElement(Type = ...]<BR/>public EmployeeBase Employee<BR/>{<BR/> get {// retrun employee;}<BR/>}<BR/><BR/>I hope it helps.Muhammad Haroonhttps://www.blogger.com/profile/14223832346858952477noreply@blogger.comtag:blogger.com,1999:blog-872785729652921823.post-83303717999677518512007-03-07T11:19:00.000-06:002007-03-07T11:19:00.000-06:00I am new to xmlSerialization as a whole. From what...I am new to xmlSerialization as a whole. From what I gather this is a very convenient solution. I do however have a few questions:<BR/><BR/>1. The second part where you said to add an attribute directonly on the base class property, are you referring in this case to the _parameters?<BR/><BR/>2. Do you have any examples of how you would create serialize a derived object using this class?<BR/><BR/>Anonymousnoreply@blogger.com