DTOMaker.Runtime.MemBlocks
1.10.4
See the version list below for details.
dotnet add package DTOMaker.Runtime.MemBlocks --version 1.10.4
NuGet\Install-Package DTOMaker.Runtime.MemBlocks -Version 1.10.4
<PackageReference Include="DTOMaker.Runtime.MemBlocks" Version="1.10.4" />
<PackageVersion Include="DTOMaker.Runtime.MemBlocks" Version="1.10.4" />
<PackageReference Include="DTOMaker.Runtime.MemBlocks" />
paket add DTOMaker.Runtime.MemBlocks --version 1.10.4
#r "nuget: DTOMaker.Runtime.MemBlocks, 1.10.4"
#:package DTOMaker.Runtime.MemBlocks@1.10.4
#addin nuget:?package=DTOMaker.Runtime.MemBlocks&version=1.10.4
#tool nuget:?package=DTOMaker.Runtime.MemBlocks&version=1.10.4
DTOMaker
Warning: This is pre-release software under active development. Breaking changes may occur.
This project contains model-driven compile-time source generators for quickly creating and maintaining polymorphic, immutable DTOs (Data Transport Objects) supporting various serialization protocols.
Open Source Maintenance Fee Introduction
To ensure the long-term sustainability of this project, we are introducing an Open Source Maintenance Fee. This fee is required to be paid by all users of this project who generate revenue above defined thresholds. Non-revenue-generating use of the project, such as by hobbyists, charities and other non-profit organisations, any any organisation with reveune below the minimum threshold, are not required to pay the fee.
You can pay via GitHub Sponsors.
We plan to enforce the maintenance fee starting with the release of V2.0 binaries. At that time, a EULA on binary releases requires payment of the Maintenance Fee.
Please see the Open Source Maintenance Fee section below for more information.
V1.0 Features
- Models defined via C# interfaces with attributes.
- Source generators create implementations at compile time.
- Properties can be basic .NET types such as integers, floats, strings, Guid, etc.
- Raw byte arrays are supported using the built-in Octets type.
- Other common types such as DateTime, DateTimeOffset, TimeSpan are supported by built-in converters.
- User-defined value types can be supported via user-defined converters to built-in types.
- Nullable types.
- Polymorphic types.
- Freezable types: Instances are mutable until frozen.
- Serialization protocols:
- JSON (System.Text.Json)
- JSON (Newtonsoft.Json)
- MessagePack 2.x
- MemBlocks
- Collections. Collections based on balanced binary trees are supported.
Example
using DTOMaker.Models;
namespace MyModels;
[Entity(1)] public interface INode : IEntityBase
{
[Member(1)] String Key { get; set; }
}
[Entity(2)] public interface IStringNode : INode
{
[Member(1)] String Value { get; set; }
}
[Entity(3)] public interface INumberNode : INode
{
[Member(1)] Int64 Value { get; set; }
}
[Entity(4)] public interface ITree : IEntityBase
{
[Member(1)] ITree? Left { get; set; }
[Member(2)] ITree? Right { get; set; }
[Member(3)] INode? Node { get; set; }
}
Workflow
flowchart TB
def(Define models e.g. IMyDTO.cs)
ref1(Reference DTOMaker.Models)
ref2(Reference runtime e.g. DTOMaker.Runtime.JsonSystemText)
ref3(Reference source generator e.g. DTOMaker.SrcGen.JsonSystemText)
bld(Build/Run)
ref1-->def
def-->ref2
ref2-->ref3
ref3-->bld
Ongoing Development
Coming soon in V1.x
- more custom (ref and value) type converters
Coming later in V2.0+
- incremental serialization
- MessagePack 3.x serialization
- Orleans serialization
- Protobuf.Net serialization
- model.json generation
- command-line alternative
- variant native type support
- variable length arrays
- logical value equality
- common pattern extensions
License
This project is licensed under the Apache-2.0 License - see the LICENSE file for details.
Open Source Maintenance Fee
This project participates in the Open Source Maintenance Fee.
The source code is freely available under the terms of the LICENSE. To support sustainable maintenance, use of the project’s official releases in revenue-generating activities requires adherence to the Open Source Maintenance Fee.
In short: if you use this project as part of generating revenue, the Maintenance Fee applies. The fee directly supports the people maintaining the project and helps ensure its long-term health.
To pay the Maintenance Fee, become a Sponsor.
Miscellaneous
- This readme was last updated 14th Feb 2026.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- DataFac.Memory (>= 0.18.11)
- DataFac.Storage (>= 2.1.14)
- DTOMaker.Models (>= 1.10.4)
- DTOMaker.Runtime (>= 1.10.4)
- Microsoft.Bcl.HashCode (>= 6.0.0)
- System.Memory (>= 4.6.3)
- System.Threading.Tasks.Extensions (>= 4.6.3)
-
net10.0
- DataFac.Memory (>= 0.18.11)
- DataFac.Storage (>= 2.1.14)
- DTOMaker.Models (>= 1.10.4)
- DTOMaker.Runtime (>= 1.10.4)
- Microsoft.Bcl.HashCode (>= 6.0.0)
-
net8.0
- DataFac.Memory (>= 0.18.11)
- DataFac.Storage (>= 2.1.14)
- DTOMaker.Models (>= 1.10.4)
- DTOMaker.Runtime (>= 1.10.4)
- Microsoft.Bcl.HashCode (>= 6.0.0)
-
net9.0
- DataFac.Memory (>= 0.18.11)
- DataFac.Storage (>= 2.1.14)
- DTOMaker.Models (>= 1.10.4)
- DTOMaker.Runtime (>= 1.10.4)
- Microsoft.Bcl.HashCode (>= 6.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.0.15-dev | 30 | 3/1/2026 |
| 2.0.13-dev | 43 | 2/27/2026 |
| 2.0.9-dev | 46 | 2/27/2026 |
| 2.0.7-dev | 42 | 2/26/2026 |
| 1.11.8-dev | 89 | 2/20/2026 |
| 1.10.4 | 95 | 2/14/2026 |
| 1.9.5 | 113 | 2/7/2026 |
| 1.9.4-dev | 92 | 2/6/2026 |
| 1.9.2-dev | 99 | 2/1/2026 |
| 1.8.7 | 100 | 1/26/2026 |
| 1.8.6 | 92 | 1/23/2026 |
| 1.8.4 | 101 | 1/22/2026 |
| 1.8.1-dev | 91 | 1/22/2026 |
| 1.7.25 | 88 | 1/19/2026 |
| 1.7.22 | 91 | 1/18/2026 |
| 1.7.20-dev | 88 | 1/18/2026 |
| 1.7.18-dev | 88 | 1/18/2026 |
| 1.7.8-dev | 90 | 1/17/2026 |
| 1.7.1-dev | 94 | 1/8/2026 |
| 1.6.12 | 95 | 1/6/2026 |