1
0
mirror of synced 2024-11-14 11:09:16 +00:00
x2xmldatabinding/Units/XMLDataBindingHelpers.pas
Mark van Renswoude f3d8ef6968 Added: FS#14 - LoadFromFile/Stream methods missing for Base64Binary properties
Changed: moved to Delphi XE2, changed StreamHelper to StreamWriter descendant
Added: 64-bits build, for fun
2014-08-25 18:26:12 +00:00

37 lines
729 B
ObjectPascal

unit XMLDataBindingHelpers;
interface
uses
System.Classes;
type
TNamedFormatWriter = class(TStreamWriter)
public
procedure WriteNamedFmt(const ASource: String; const AParams: array of const);
procedure WriteLineNamedFmt(const ASource: String; const AParams: array of const);
end;
implementation
uses
SysUtils,
X2UtNamedFormat;
{ TNamedFormatWriter }
procedure TNamedFormatWriter.WriteNamedFmt(const ASource: String; const AParams: array of const);
begin
Write(NamedFormat(ASource, AParams));
end;
procedure TNamedFormatWriter.WriteLineNamedFmt(const ASource: String; const AParams: array of const);
begin
WriteLine(NamedFormat(ASource, AParams));
end;
end.