//——————————————————————————
//
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
//——————————————————————————
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute(“Steve Dunn”)]
[assembly: System.Reflection.AssemblyConfigurationAttribute(“Debug”)]
[assembly: System.Reflection.AssemblyCopyrightAttribute(“Copyright Steve Dunn”)]
[assembly: System.Reflection.AssemblyDescriptionAttribute(@”
This package contains a Souce Generator which generates Value Objects that wrap simple primitives such as int, string, double etc.
A ValueObject is a strongly typed (strongly, not stringly) domain object that is immutable.
Instead of int customerId = 42;
we have var customerId = CustomerId.From(42);
To use, just create something like this:
[ValueObject(typeof(int))]
public partial struct CustomerId
{
}
var customerId = CustomerId.From(42);
Validation is in just one place. You can’t introduce bad objects into your domain, therefore you can assume that in your domain every ValueObject is valid.
“)]
[assembly: System.Reflection.AssemblyFileVersionAttribute(“1.0.0.0”)]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute(“1.0.0+838ba802b7dc96319111378b8faeaee44b8227d0”)]
[assembly: System.Reflection.AssemblyProductAttribute(“Vogen.Pack”)]
[assembly: System.Reflection.AssemblyTitleAttribute(“Vogen.Pack”)]
[assembly: System.Reflection.AssemblyVersionAttribute(“1.0.0.0”)]
[assembly: System.Reflection.AssemblyMetadataAttribute(“RepositoryUrl”, “https://github.com/SteveDunn/Vogen”)]
// Generated by the MSBuild WriteCodeFragment class.