⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 testdelphinetclassvar.out

📁 格式化源码的最新板
💻 OUT
字号:
unit TestDelphiNetClassVar;

{ AFS 9 Sept 2005
 This unit compiles but is not semantically meaningfull
 it is test cases for the code formatting utility

 This code tests Delphi.Net use of "var" in a clas declaration
}

interface

type
  TEOMReport = class(TObject)
  private
    { Private declarations }
  var
    rTop20ClRefer, rPstOfTotalCR, rTop20SL, rPstOfTotalSL,
    rTop20CA, rPstOfTotalCA: real;

    procedure FetchTop20CurrentAccount;
  public
    procedure TransferTop20CurrentAccount;
  end;

type
  TFooReport = class(TObject)
  private
  var
    foo, bar:  string;
    fish, boo: integer;

    function Wibble: integer;

  var
    goo, gar, gib: integer;
  var
    soo, dar: integer;
    thing: string;

  end;


  TFooClass = class
  var
    a1: integer;
  private
  var
    b2: string;
    b3: integer;
  protected
  var
    c3, c4, c5: boolean;
  public
  var
    d6: TObject;

  end;

implementation

procedure TEOMReport.FetchTop20CurrentAccount;
begin
  // test
end;

procedure TEOMReport.TransferTop20CurrentAccount;
begin
  // test
end;


{ TFooReport }

function TFooReport.Wibble: integer;
begin
  Result := 3;
end;

end.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -