Skip to content

Commit 7e9bd49

Browse files
nschonnimairaw
authored andcommitted
typo: Overrideable -> Overridable (#2177)
1 parent 42fd363 commit 7e9bd49

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

xml/System.CodeDom/MemberAttributes.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
The identifiers defined in the <xref:System.CodeDom.MemberAttributes> enumeration can be used to indicate the scope and access attributes of a class member.
3838
3939
> [!NOTE]
40-
> There is no `Virtual` member attribute. A member is declared virtual by setting its member access to Public (`property1.Attributes = MemberAttributes.Public`) without specifying it as Final. The absence of the Final flag makes a member `virtual` in C# (`public virtual`), `overrideable` in Visual Basic (`Public Overrideable`). To avoid declaring the member as `virtual` or `overrideable`, set both the Public and Final flags in the <xref:System.CodeDom.CodeTypeMember.Attributes%2A> property. See the <xref:System.CodeDom.CodeTypeMember.Attributes%2A> property for more information on setting member attributes.
40+
> There is no `Virtual` member attribute. A member is declared virtual by setting its member access to Public (`property1.Attributes = MemberAttributes.Public`) without specifying it as Final. The absence of the Final flag makes a member `virtual` in C# (`public virtual`), `overridable` in Visual Basic (`Public Overridable`). To avoid declaring the member as `virtual` or `overridable`, set both the Public and Final flags in the <xref:System.CodeDom.CodeTypeMember.Attributes%2A> property. See the <xref:System.CodeDom.CodeTypeMember.Attributes%2A> property for more information on setting member attributes.
4141
4242
> [!NOTE]
4343
> The pattern for setting the access flags (flags containing the terms `Public`, `Private`, `Assembly`, or `Family`) is to mask out all access flags using the AccessMask mask and then set the desired access flag. For example, the code statement to identify a constructor (named `constructor1`) as public is `constructor1.Attributes = (constructor1.Attributes & ~MemberAttributes.AccessMask) | MemberAttributes.Public;`. Setting the <xref:System.CodeDom.CodeTypeMember.Attributes%2A> property directly to an access flag (for example, `constructor1.Attributes = MemberAttributes.Public;`) erases all other flags that might be set. This pattern should also be used for setting the scope flags (Abstract, Final, Static, Override or Const) using the ScopeMask mask.

xml/System.Management/ManagementStatus.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2326,7 +2326,7 @@
23262326
</ReturnValue>
23272327
<MemberValue>-2147217325</MemberValue>
23282328
<Docs>
2329-
<summary>An attempt was made in a derived class to override a non-overrideable qualifier.</summary>
2329+
<summary>An attempt was made in a derived class to override a non-overridable qualifier.</summary>
23302330
</Docs>
23312331
</Member>
23322332
<Member MemberName="UpdatePropagatedMethod">

0 commit comments

Comments
 (0)