Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix formatting issue in README.md
  • Loading branch information
marthijn committed Feb 25, 2026
commit 0ad3ab73d70bab61995a15ad1b0c9b70bf548bc3
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,7 @@ var c = default(CustomerId); // error VOG009: Type 'CustomerId' cannot be constr
var c = GetCustomerId(); // error VOG010: Type 'CustomerId' cannot be constructed with 'new' as it is prohibited

var c = Activator.CreateInstance<CustomerId>(); // error VOG025: Type 'CustomerId' cannot be constructed via Reflection as it is prohibited.
var c = Activator.CreateInstance(<CustomerId>); // error VOG025: Type 'MyVo' cannot be constructed via Reflection as
it is prohibited
var c = Activator.CreateInstance(<CustomerId>); // error VOG025: Type 'CustomerId' cannot be constructed via Reflection as it is prohibited.

// catches lambda expressions
Func<CustomerId> f = () => default; // error VOG009: Type 'CustomerId' cannot be constructed with default as it is prohibited.
Expand Down