Skip to content

Little nitpick with the documentation of Lazy.cs #111921

@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 codehelp wanted[up-for-grabs] Good issue for external contributors

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions