diff --git a/src/System.Private.CoreLib/src/System/Lazy.cs b/src/System.Private.CoreLib/src/System/Lazy.cs index 2cefb5b94de..a2b1b930a00 100644 --- a/src/System.Private.CoreLib/src/System/Lazy.cs +++ b/src/System.Private.CoreLib/src/System/Lazy.cs @@ -124,6 +124,19 @@ public Lazy(Func valueFactory) { } + /// + /// Initializes a new instance of the class that + /// uses a pre-initialized specified value. + /// + /// + /// An instance created with this constructor should be usable by multiple threads + // concurrently. + /// + public Lazy(T value) + { + _boxed = new Boxed(value); + } + /// /// Initializes a new instance of the /// class that uses 's default constructor and a specified thread-safety mode.