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

📄 testdelphinetdottedtype.out

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

interface

type

  TMyClass = class
  public
    MSExcelType: System.type;
    ObjValue:    System.object;
  end;


  TMyClass2 = class
  private
    ObjValue:    System.object;
    MSExcelType: System.type;
  public
    function GetObject(MyType: System.type): TObject;

    procedure CatchDottedException;
  end;

implementation

uses
  System.Runtime.Remoting;

{ TMyClass2 }

procedure TMyClass2.CatchDottedException;
begin
  try

  except
    // Parser exception near DO keyword
    on exp: System.Runtime.Remoting.RemotingException do
    begin

    end;

  end;

end;

function TMyClass2.GetObject(MyType: System.type): TObject;
begin
  ObjValue := System.object(Convert.ToDouble(Console.ReadLine));
  MSExcelType := System.type.GetTypeFromProgID('Excel.Application', True);

  Result := nil;
end;

end.

⌨️ 快捷键说明

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