Closed fabriciofx closed 6 years ago
Nowadays, IDataParams has 3 Add() methods:
IDataParams
Add()
function Add(const ParamName: string; DataType: TFieldType; Value: Variant): IDataParams; overload; function Add(const AParam: IDataParam): IDataParams; overload; function Add(const AParams: IDataParams): IDataParams; overload;
So, my suggestion is to have only one Add() method, like this:
function Add(const AParam: IDataParam): IDataParams; overload;
When we want to save to a file, we can do something like it:
IDataParams ds = TDataParams.New(); ds.Add(TDataParam.New(...));
And, to allow add a IDataParams to a IDataParams, IDataParams show extends IDataParam.
IDataParam
WDYT?
I've just removed the first one. The last, I cannot, because the algorithm should need to execute a loop in all items.
Nowadays,
IDataParams
has 3Add()
methods:So, my suggestion is to have only one
Add()
method, like this:When we want to save to a file, we can do something like it:
And, to allow add a
IDataParams
to aIDataParams
,IDataParams
show extendsIDataParam
.WDYT?