diff --git a/README.md b/README.md index c5c6ecf..210ec38 100644 --- a/README.md +++ b/README.md @@ -70,9 +70,11 @@ if (FastNew.TryCreateInstance("arg0", out T result)); ### Notes -> **With .NET Framework**, `Activator.CreateInstance()` invokes the parameterless constructor of `ValueType` if the constraint is `where T : new()` but appears to **ignore the parameterless constructor if the constraint is `where T : struct`**. +> **With .NET Framework**, `Activator.CreateInstance()` invokes the parameterless constructor of **ValueType** if +> the constraint is `where T : new()` but appears to **ignore the parameterless constructor if the constraint is `where T : struct`**. > **But `FastNew.CreateInstance()` will always invoke the parameterless constructor if it's available.** -> If you don't want to invoke the parameterless constructor of `ValueType`. +> +> If you don't want to invoke the parameterless constructor of **ValueType**. > Consider to use `FastNew.NewOrDefault()` which **will never invoke the parameterless constructor of `ValueType`** ## Benchmark