RingDotNet is a package for the Ring programming language that enables developers to use .NET classes and methods directly from Ring. The package hosts the .NET runtime inside the Ring process and talks to it through a small managed bridge. The .NET base class library, Windows Forms, WPF, ASP.NET Core, Entity Framework Core and any assembly (the framework's or your own dll, or a NuGet package) can be used from Ring with the same simple syntax.
ringpm install ringdotnet from ringpackages
RingDotNet includes over one million lines of generated Ring code, more than 7,000 pages of documentation, and a large collection of samples and applications.
The package is tested with Ring 1.28 and .NET 9.
URL: https://ringpackages.github.io/ringdotnet/
load "dotnet.ring"
using {
"System"
"System.Text"
}
? new Math().Max(3,9) # 9: a static method
oSB = new StringBuilder("Hello")
oSB.Append(", Ring!")
? oSB.ToString() # Hello, Ring!
? oSB.Length # 12samples/UsingDotNet has:
introduction: short programs for each area,FormsandWpf: one small window program for each feature,applications: complete programs (a calculator, an editor, games, a web API, a contacts book...),tutorials: the programs of the lessons, named by chapter (chNN_name.ring),tests: the automated tests, including tests against real NuGet packages.
Building.md has the steps: the C extension and the C# bridge, the generated classes, the tests, the package zip, and the documentation (HTML, PDF and screenshots, made by Ring programs in docs/tools).
The RingDotNet package is released under the MIT License.
