Skip to content

Little nitpick with the documentation of Lazy.cs #111921

Open
@hhmmjjnn

Description

@hhmmjjnn

In...

https://github.com/dotnet/runtime/blob/f1901a00dfcfbcf0a4f8b6aa7459fec30846d1ab/src/libraries/System.Private.CoreLib/src/System/Lazy.cs#L528C1-L533C1

...please consider replacing...

        /// <summary>Returns the execution mode of the Lazy object</summary>
        public LazyThreadSafetyMode? Mode => _lazy.Mode;

        /// <summary>Returns the execution mode of the Lazy object</summary>
        public bool IsValueFaulted => _lazy.IsValueFaulted;

...by...

        /// <summary>Returns the execution mode of the Lazy object.</summary>
        public LazyThreadSafetyMode? Mode => _lazy.Mode;

        /// <summary>Returns whether the value creation of the Lazy object is faulted or not.</summary>
        public bool IsValueFaulted => _lazy.IsValueFaulted;

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-System.RuntimedocumentationDocumentation bug or enhancement, does not impact product or test codeuntriagedNew issue has not been triaged by the area owner

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions