Data update
This commit is contained in:
parent
29a5eea0d4
commit
5c1bb7bfa9
2011 changed files with 35081 additions and 3229 deletions
|
|
@ -0,0 +1,19 @@
|
|||
type
|
||||
MyClass = class
|
||||
private
|
||||
dict := new Dictionary<string,object>;
|
||||
public
|
||||
procedure Add(name: string; value: object) := dict[name] := value;
|
||||
property Items[name: string]: object read dict[name]; default;
|
||||
end;
|
||||
|
||||
begin
|
||||
var obj := new MyClass;
|
||||
obj.Add('Name','PascalABC.NET');
|
||||
obj.Add('Age',16);
|
||||
Println(obj['Name'],obj['Age']);
|
||||
var obj1 := new MyClass;
|
||||
obj1.Add('X',2.3);
|
||||
obj1.Add('Y',3.8);
|
||||
Println(obj1['X'],obj1['Y']);
|
||||
end.
|
||||
Loading…
Add table
Add a link
Reference in a new issue