Skip to content

About

RingDotNet is a package for the Ring programming language that enables developers to use .NET classes and methods directly from Ring. It includes over one million lines of generated Ring code, more than 7,000 pages of documentation, and a large collection of samples and applications.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

RingDotNet

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.

Install

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.

RingDotNet: the cover of the PDF manual, and the size of the package

Online Documentation

URL: https://ringpackages.github.io/ringdotnet/

Example

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                                    # 12

Architecture

Architecture of RingDotNet: your Ring program, dotnetlib, the C extension ring_dotnet.dll, and the C# bridge that reaches the .NET class library, WinForms, WPF, ASP.NET, EF and your own DLLs

Samples and tests

samples/UsingDotNet has:

  • introduction: short programs for each area,
  • Forms and Wpf: 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 from source

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).

License

The RingDotNet package is released under the MIT License.

About

RingDotNet is a package for the Ring programming language that enables developers to use .NET classes and methods directly from Ring. It includes over one million lines of generated Ring code, more than 7,000 pages of documentation, and a large collection of samples and applications.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages