Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions src/mscorlib/model.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3134,6 +3134,7 @@
</Type>
<Type Name="System.Lazy&lt;T&gt;">
<Member Name="#ctor"/>
<Member Name="#ctor(T)"/>
<Member Name="#ctor(System.Func&lt;T&gt;)"/>
<Member Name="#ctor(System.Boolean)"/>
<Member Name="#ctor(System.Threading.LazyThreadSafetyMode)"/>
Expand Down
13 changes: 13 additions & 0 deletions src/mscorlib/src/System/Lazy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,19 @@ public Lazy()
{
}

/// <summary>
/// Initializes a new instance of the <see cref="T:System.Threading.Lazy{T}"/> class that
/// uses a pre-initialized specified value.
/// </summary>
/// <remarks>
/// An instance created with this constructor should be usable by multiple threads
// concurrently.
/// </remarks>
public Lazy(T value)
{
m_boxed = new Boxed(value);
}

/// <summary>
/// Initializes a new instance of the <see cref="T:System.Threading.Lazy{T}"/> class that uses a
/// specified initialization function.
Expand Down