你能把VS C#的源代码放到delphi中吗?
问题描述:
大家好。我有一个.NET应用程序,我想在Delphi中运行。所以我只是想知道是否可以将Visual Studio C#源代码放在Delphi(C#)中。它会起作用吗?
我尝试了什么:
我有之前尝试过,但我收到了一个错误。但从理论上说它应该有效吗?我回家后会再试一次。
Hello guys. I have a .NET application which I want to run in Delphi. So I am just wondering if it is possible to put Visual Studio C# source code in Delphi (C#). Will it work?
What I have tried:
I have tried it before but I got an error. But in theory it should work? Will try again when I come home.
答
没有。
首先因为C#是......好吧,C#...和Delphi是基于Pascal的,一种具有相似根源的语言,但它与任何实际方式无关。
第二,因为C#需要。 .NET框架做任何事情,两者都是非常密切相关的。 Delphi不支持.NET - 尽管你可以使用Delphi for .NET来消除让C#代码以Delphi运行的全部意义......
No.
Firstly because C# is ... well, C# ... and Delphi is Pascal based, a language with similar roots, but which is not related in any practical way.
Second because C# requires the .NET framework to do anything, the two are very closely related. Delphi does not support .NET - although you can get Delphi for .NET that kinda removes the whole point of getting C# code to run as Delphi...