Skip to main content

All Questions

Filter by
Sorted by
Tagged with
4 votes
3 answers
1k views

C#/VB struct – how to avoid case with zero default values, which is considered invalid for given structure?

How to implement some constrained .NET struct/structure (let's say LimitedString), where its state with default values (set by CLR to technical defaults, i.e. nulls, zeros, etc.) should be prohibited ...
miroxlav's user avatar
  • 672