DTOMaker.MemBlocks 0.36.4

There is a newer version of this package available.
See the version list below for details.
dotnet add package DTOMaker.MemBlocks --version 0.36.4
                    
NuGet\Install-Package DTOMaker.MemBlocks -Version 0.36.4
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DTOMaker.MemBlocks" Version="0.36.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DTOMaker.MemBlocks" Version="0.36.4" />
                    
Directory.Packages.props
<PackageReference Include="DTOMaker.MemBlocks" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DTOMaker.MemBlocks --version 0.36.4
                    
#r "nuget: DTOMaker.MemBlocks, 0.36.4"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package DTOMaker.MemBlocks@0.36.4
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=DTOMaker.MemBlocks&version=0.36.4
                    
Install as a Cake Addin
#tool nuget:?package=DTOMaker.MemBlocks&version=0.36.4
                    
Install as a Cake Tool

DTOMaker

todo badge

Warning: This is pre-release software under active development. Not for production use. Breaking changes occur often.

This repo contains several related packages.

DTOMaker.Models

Attributes for defining simple data models as interfaces in C#.

DTOMaker.Core

Core types used by source generators at compile-time, including a common syntax receiver, and a powerful template processor.

Generators

The following source generators depend on this package:

DTOMaker.MessagePack

Generates DTOs decorated with MessagePack attributes (https://github.com/MessagePack-CSharp/MessagePack-CSharp).

DTOMaker.MemBlocks

Generates DTOs whose internal data is a single memory block (Memory<byte>). Property getters and setters decode and encode values directly to the block with explicit byte ordering (little-endian or big-endian).

DTOMaker.CSPoco

Generates basic POCOs (Plain Old C# Objects) that implement the data model interfaces.

Features

Features implemented:

  • Data types: Boolean, S/Byte, U/Int16/32/64/128, Double, Single, Half, Char, Guid, Decimal
  • IFreezable support
  • Templates as code, template processing
  • [Obsolete] members
  • Fixed length arrays of above types
  • DTOMaker.MessagePack source generator
  • DTOMaker.MemBlocks source generator
  • DTOMaker.CSPoco source generator

Features not implemented:

  • Nullable types. T? can be simulated using a pair of fields (Boolean, T).
  • Enum data types. An enumeration type can be simulated with a casting property.
  • Strings (UTF8). String types can be simulated with a byte array field and a length field.

In progress:

  • Json (NewtonSoft) generator

Coming next:

  • Json (System.Text) generator
  • ProtobufNet 3.0 generator
  • other model entities
  • member wire names and tags
  • reservation (hidden members)
  • compact layout method

Coming later:

  • C# records generator
  • Google Protobuf .proto generation
  • polymorphic types
  • generic patterns: lists, trees, unions, etc.
  • variable length arrays
  • logical value equality

These models are consumed by the following source generators to emit DTO classes that implement the model interfaces.

Benchmarks

Some benchmarking comparing the serialization and deserialization performance of various generated DTOs can be found at: todo

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

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
0.71.8 134 10/3/2025
0.71.7 284 9/19/2025
0.71.6 303 9/17/2025
0.71.5 287 9/16/2025
0.71.4 238 9/15/2025
0.71.3 244 9/15/2025
0.71.1 237 9/15/2025
0.70.3 161 9/9/2025
0.70.2 172 9/2/2025
0.70.1-dev 206 8/27/2025
0.69.10 135 8/17/2025
0.69.9 91 8/16/2025
0.69.8 165 8/13/2025
0.69.7-dev 161 8/13/2025
0.69.6-dev 156 8/12/2025
0.69.4-dev 125 8/9/2025
0.69.3-dev 95 7/19/2025
0.69.2-dev 89 7/19/2025
0.68.6 101 7/19/2025
0.68.5-dev 89 7/19/2025
0.68.2-dev 157 7/17/2025
0.68.1-dev 167 7/17/2025
0.67.7 168 7/17/2025
0.67.6-dev 175 7/9/2025
0.67.5-dev 169 7/9/2025
0.67.3-dev 159 7/7/2025
0.67.1-dev 317 6/10/2025
0.66.18 274 6/9/2025
0.66.17-dev 238 6/9/2025
0.66.16-dev 147 6/8/2025
0.66.14-dev 93 6/7/2025
0.66.13-dev 170 6/5/2025
0.66.10-dev 177 6/5/2025
0.66.9-dev 171 6/5/2025
0.66.8-dev 173 6/5/2025
0.66.7-dev 165 6/4/2025
0.66.2-dev 105 5/31/2025
0.65.20-generics-g24a665d336 96 5/31/2025
0.65.13-generics-ge74b19332f 175 4/23/2025
0.65.10-generics-g6f262eb134 221 4/17/2025
0.65.1-generics 93 5/31/2025
0.64.27 175 5/27/2025
0.64.26 235 5/16/2025
0.64.24 175 5/8/2025
0.64.22 186 4/23/2025
0.64.20 211 4/10/2025
0.64.18 219 4/10/2025
0.64.17 209 4/10/2025
0.64.16 198 4/9/2025
0.64.10 199 4/7/2025
0.64.9 164 4/4/2025
0.64.8-dev 170 4/1/2025
0.64.7-dev-g53a80ba3be 173 4/1/2025
0.64.5-dev-g449e36f771 501 3/25/2025
0.64.5-dev-g2fcf9bff64 174 4/1/2025
0.64.4-dev 174 4/1/2025
0.64.3-dev 178 3/31/2025
0.64.2-dev 494 3/25/2025
0.64.1-dev 513 3/25/2025
0.63.60-gee4d301e03 506 3/25/2025
0.63.19 134 3/21/2025
0.63.19-g2e909c64aa 126 3/21/2025
0.63.17 153 3/14/2025
0.63.16 157 3/14/2025
0.63.15 182 3/13/2025
0.63.13 203 3/11/2025
0.63.12 195 3/11/2025
0.63.11-dev 190 3/11/2025
0.63.9-dev 191 3/11/2025
0.63.8-dev 185 3/10/2025
0.63.7-dev 182 3/10/2025
0.63.6-dev 190 3/10/2025
0.63.3-dev 181 3/10/2025
0.62.10 249 3/8/2025
0.62.9 247 3/8/2025
0.62.7 244 3/7/2025
0.62.6-dev 230 3/7/2025
0.62.5-dev 230 3/7/2025
0.61.14 264 3/6/2025
0.61.13-dev 231 3/6/2025
0.61.12-dev 228 3/6/2025
0.61.10-dev 227 3/6/2025
0.61.9-dev 227 3/5/2025
0.61.8-dev 239 3/5/2025
0.61.5-dev 233 3/4/2025
0.61.3-dev 227 3/4/2025
0.61.2-dev 166 3/3/2025
0.60.8 150 2/27/2025
0.60.7 133 2/27/2025
0.60.6-dev 123 2/27/2025
0.60.3-dev 118 2/25/2025
0.59.10 142 2/19/2025
0.59.8-dev 130 2/19/2025
0.59.5-dev 137 2/17/2025
0.59.4-dev 136 2/15/2025
0.58.9 137 2/4/2025
0.58.8-dev 119 2/4/2025
0.57.6 138 2/1/2025
0.57.4 126 2/1/2025
0.57.2-dev 126 2/1/2025
0.57.1-dev 124 2/1/2025
0.56.13 140 1/31/2025
0.56.12-dev 118 1/31/2025
0.56.11-dev 121 1/30/2025
0.56.10-dev 126 1/30/2025
0.56.9-dev 120 1/30/2025
0.56.6-dev 115 1/24/2025
0.56.5-dev 127 1/24/2025
0.56.4-dev 107 1/24/2025
0.56.3-dev 107 1/24/2025
0.55.38 136 1/23/2025
0.55.37-dev 134 1/23/2025
0.55.36-dev 123 1/22/2025
0.55.34-dev 124 1/22/2025
0.55.32-dev 121 1/22/2025
0.55.31-dev 119 1/21/2025
0.55.30-dev 125 1/21/2025
0.55.29-dev 115 1/20/2025
0.55.27-dev 108 1/20/2025
0.55.25-dev 109 1/20/2025
0.55.24-dev 120 1/20/2025
0.55.23-dev 120 1/19/2025
0.55.20-dev 115 1/19/2025
0.55.17-dev 118 1/19/2025
0.55.14-dev 106 1/19/2025
0.54.2 137 1/3/2025
0.54.1-dev 119 1/3/2025
0.53.4 154 1/1/2025
0.53.3 146 1/1/2025
0.53.2 152 12/31/2024
0.53.1-dev 109 12/31/2024
0.52.1 122 12/31/2024
0.51.1 127 12/31/2024
0.50.2 129 12/31/2024
0.50.1-dev 114 12/31/2024
0.49.3 139 12/29/2024
0.49.2-dev 130 12/29/2024
0.49.1-dev 126 12/29/2024
0.48.5 136 12/29/2024
0.48.4-dev 124 12/29/2024
0.48.3-dev 118 12/28/2024
0.48.2-dev 117 12/28/2024
0.48.1-dev 118 12/28/2024
0.47.2 137 12/28/2024
0.47.1 126 12/27/2024
0.46.9 127 12/27/2024
0.46.8 134 12/27/2024
0.46.7 121 12/27/2024
0.46.6 128 12/23/2024
0.46.5 131 12/23/2024
0.46.4 127 12/23/2024
0.46.3 140 12/22/2024
0.46.2-dev 119 12/22/2024
0.46.1-dev 112 12/22/2024
0.45.3 131 12/22/2024
0.45.2-dev 128 12/21/2024
0.45.1-dev 117 12/20/2024
0.44.4 134 12/19/2024
0.44.3 128 12/19/2024
0.44.2 134 12/19/2024
0.44.1 128 12/19/2024
0.43.3 139 12/19/2024
0.43.2-dev 121 12/19/2024
0.43.1-dev 120 12/19/2024
0.42.2 128 12/18/2024
0.42.1-dev 119 12/18/2024
0.41.2 138 12/18/2024
0.41.1-dev 115 12/18/2024
0.40.4 150 12/16/2024
0.40.3-dev 118 12/16/2024
0.39.2 136 12/3/2024
0.39.1-dev 111 12/3/2024
0.38.2-dev 133 11/25/2024
0.38.1-dev 126 11/25/2024
0.37.2 131 11/24/2024
0.37.1 136 11/23/2024
0.36.6 132 11/23/2024
0.36.5 141 11/22/2024
0.36.4 134 11/22/2024
0.34.1 128 11/17/2024
0.33.1 129 11/17/2024
0.32.1 132 11/16/2024
0.31.1 131 11/16/2024
0.29.5 143 11/13/2024
0.29.4 134 11/13/2024
0.29.3 135 11/13/2024
0.29.2 133 11/12/2024
0.29.1 137 11/12/2024
0.28.2 144 11/12/2024
0.28.1 151 11/11/2024
0.27.1 137 11/11/2024
0.26.6 145 11/11/2024
0.26.4 145 11/9/2024
0.26.2-dev 103 11/7/2024
0.26.1-dev 124 11/5/2024
0.25.2 172 10/20/2024
0.24.1 166 10/19/2024
0.23.2 169 10/19/2024
0.23.1 187 10/18/2024
0.22.4 191 10/18/2024
0.21.2 144 10/11/2024
0.21.1-beta 121 10/10/2024
0.20.4 140 10/9/2024
0.20.3 137 10/9/2024
0.20.2 136 10/8/2024
0.19.2 143 10/7/2024
0.19.1 143 10/6/2024
0.18.2 143 10/6/2024
0.18.1 190 10/6/2024
0.17.3 143 10/5/2024
0.17.2 149 10/5/2024
0.16.2 137 10/5/2024
0.16.1 143 10/5/2024
0.15.2 137 10/5/2024
0.15.1 150 10/5/2024
0.14.2 151 10/5/2024
0.14.1 140 10/5/2024
0.13.1 134 10/4/2024
0.12.3 144 10/4/2024
0.11.3 145 10/4/2024
0.10.1 159 10/2/2024
0.9.2 149 10/2/2024
0.3.8-beta 122 10/1/2024
0.3.7-beta 131 10/1/2024
0.3.6-beta 123 10/1/2024
0.3.5-beta 138 9/30/2024
0.3.4-beta 132 9/30/2024
0.3.3-beta 142 9/30/2024
0.3.2-beta 126 9/30/2024
0.3.1-beta 133 9/30/2024