📄 netattributes.dpr
字号:
program NetAttributes;
uses
Borland.Delphi.SysUtils;
type
TMyCustomAttribute = class(TCustomAttribute)
private
FAttr : Integer;
public
constructor Create(val: Integer);
property customAttribute : Integer read FAttr write FAttr;
end;
constructor TMyCustomAttribute.Create(val: Integer);
begin
inherited Create;
customAttribute := val;
end;
type
[TMyCustomAttribute(17)]
TFoo = class
public
Data : Integer;
end;
var
Foo: TFoo;
begin
Foo := TFoo.Create;
Foo.Data := 100;
writeln ('hi, there');
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -