How to I call D code from C# Project?
GoD via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Jun 18 13:55:07 PDT 2014
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 :)
More information about the Digitalmars-d-learn
mailing list