Hi.

I want use my D code in C#

How can I do this?

D, very fast programming language. But I can not WinForm applications from D. I'm using C# for WinForm applications. But, also i want to use D code for my project.

for example;

I'm see PC information with D lang.

Example Code(Suppose that D):

PCInformation //D LANG CODE
{
  showHDDSerialNumber();
  showCPUsage();
  showMACAdress();
  showFooBar();

}

Example Code(Suppose that C#):

using namespace DCODE; // DCODE Library written it D Lang

WinFormApp
{
    PCInformation pin = new PCInformation(); // D code import
    Label1.Text = pin.ShowHDDSerialNumber(); // D code import
}

How can I do this?

Sorry for my bad english :(

Thank you :)

Reply via email to