public class CustomerId : ValueObject { public override Validation Validate() => Value > 0 ? Validation.Ok : Validation.Invalid(“Customer IDs cannot be zero or negative.”); }


          ```markdown
          public void DoSomething(CustomerId customerId, SupplierId supplierId, Amount amount)
          
public void DoSomething(int customerId, int supplierId, int amount)
          
[Benchmark]
                  public void UsingPrimitivesInInfrastructure()
                  {
                      new ExampleInfrastructureUsingPrimitives().Run();
                  }
          
[assembly: System.Reflection.AssemblyCompanyAttribute("StringlyTyped.Benchmarks")]
          
[assembly: System.Reflection.AssemblyTitleAttribute("StringlyTyped.Benchmarks")]
          
[assembly: System.Reflection.AssemblyProductAttribute("StringlyTyped.Benchmarks")]
          
[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
          
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
          

Top-Level Directory Explanations

samples/ - This directory contains example projects demonstrating the usage of StringlyTyped library.

src/ - This directory contains the source code of the StringlyTyped library.

tests/ - This directory contains unit tests for the StringlyTyped library. It includes benchmark tests and small tests.