A fail-fast validating helper for .NET CIL generation