![]() ![]() ![]() Result := FFirstName + ' ' + FMiddleName + ' ' + FLastName Ĭlass function TPerson.Load(FileName: String): TPerson Property Birthday : TDateTime read FBirthday write FBirthday Ĭlass function Load(FileName : String) : TPerson Property FullName : String read GetFullName Property MiddleName : String read FMiddleName write FMiddleName Property LastName : String read FLastName write FLastName Property FirstName : String read FFirstName write FFirstName X := TXmlDocument.Create(Self) // NEVER PASS NIL!!!Īnd here is the full code showing how to do this using the generic version. S := TXmlTypeSerializer.create(TypeInfo(o)) There are two ways to work with the Xml Serialization, one depends on a Pointer to the Type Information, the other uses Generics to get it form the type specified as a parameter. The complete goals of what I want to accomplish with XmlSerial.pas look at the source code, I detailed out what still needs to be done. NET using Delphi Prism and Win32 using Delphi 2010. NET Xml Serialization with the goal of having a set of objects that can serialize in. This was done to mimic the behavior found in the. This class has been built to serialize any public and published property or Field. This post relates to XmlSerial.pas which provides XML serialization and de-serialization using the new RTTI in Delphi 2010. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |