Skip to content

ManualResetEvent API: no Set/Reset methods #6722

@pkulikov

Description

@pkulikov

The ManualResetEvent inherits EventWaitHandle. Thus, it's expected to have Set and Reset methods. However, the class overview page in the API browser lists neither Set nor Reset methods:

image

Note, it lists inherited SetAccessControl method

Where have Set and Reset methods disappeared?

You find two if you check the TOC:
image

Selecting one of them brings to the method version for .NET Framework 1.1 (that's why those two are not in the table for the .NET Framework 4.7.2):
image

The related XML (is it the case that the member belonged to ManualResetEvent class in .NET Framework 1.1, but later was moved to EventWaitHandle? Because of that the below XML doesn't contain later assembly versions?):

    <Member MemberName="Reset">
      <MemberSignature Language="C#" Value="public bool Reset ();" />
      <MemberSignature Language="ILAsm" Value=".method public hidebysig instance bool Reset() cil managed" />
      <MemberSignature Language="DocId" Value="M:System.Threading.ManualResetEvent.Reset" />
      <MemberSignature Language="VB.NET" Value="Public Function Reset () As Boolean" />
      <MemberSignature Language="C++ CLI" Value="public:&#xA; bool Reset();" />
      <MemberSignature Language="F#" Value="member this.Reset : unit -&gt; bool" Usage="manualResetEvent.Reset " />
      <MemberType>Method</MemberType>
      <AssemblyInfo>
        <AssemblyName>mscorlib</AssemblyName>
        <AssemblyVersion>1.0.5000.0</AssemblyVersion>
      </AssemblyInfo>
      <ReturnValue>
        <ReturnType>System.Boolean</ReturnType>
      </ReturnValue>
      <Parameters />
      <Docs>
        <summary>To be added.</summary>
        <returns>To be added.</returns>
        <remarks>To be added.</remarks>
      </Docs>
    </Member>

That's not expected. Expected behavior is to see inherited Set and Reset methods.

/cc: @mairaw @dend

Metadata

Metadata

Assignees

No one assigned

    Labels

    externalNot related to content

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions