diff --git a/README.md b/README.md index 79641fa34f..ce4a76c6ad 100644 --- a/README.md +++ b/README.md @@ -139,7 +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(); // error VOG025: Type 'CustomerId' cannot be constructed via Reflection as it is prohibited. -var c = Activator.CreateInstance(); // error VOG025: Type 'CustomerId' cannot be constructed via Reflection as it is prohibited. +var c = Activator.CreateInstance(typeof(CustomerId)); // error VOG025: Type 'CustomerId' cannot be constructed via Reflection as it is prohibited. // catches lambda expressions Func f = () => default; // error VOG009: Type 'CustomerId' cannot be constructed with default as it is prohibited.