About the author
Delphi 8 provides an easy way to serialize any VCL.NET or any NET framework object.
The following code fragment shows how easy it is to serialize a .NET framework class object, a System.Windows.Forms.Button.
In Delphi speak, it's known as streaming, and it's been available in Delphi since 1994 or 1995. Now, the power of streaming any VCL.NET object is in your hands!
Note that the format of VCL streaming and .NET serialization is different and you should not mixed them together!
var F: TFileStream; MyButton: Button;begin F := TFileStream.Create('C:\TEMP\SERIALIZE.TXT', fmCreate); MyButton := Button.Create; F.WriteComponent(MyButton); MyButton.Free; F.Free;end;
Continued discussion of undocumented Delphi 8 Property Access Specifiers, and other ways of adding and removing delegates / events handlers, including clearing the list of all the delegates / event handlers.
This article discusses the new Delphi 8 property access specifiers.
A method pointer is now the same as a global procedure, ie, procedure of object = procedure.