Skip to content

Commit eb70030

Browse files
authored
Update EnumConverter.xml (#10500)
1 parent 8022d8a commit eb70030

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

xml/System.ComponentModel/EnumConverter.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,8 @@
6262
For more information about type converters, see the <xref:System.ComponentModel.TypeConverter> base class and [How to: Implement a Type Converter](https://learn.microsoft.com/previous-versions/visualstudio/visual-studio-2013/ayybcxe5(v=vs.120)).
6363
6464
> [!NOTE]
65-
> You should never create an instance of an <xref:System.ComponentModel.EnumConverter>. Instead, call the <xref:System.ComponentModel.TypeDescriptor.GetConverter%2A> method of the <xref:System.ComponentModel.TypeDescriptor> class. For more information, see the examples in the <xref:System.ComponentModel.TypeConverter> base class.
66-
67-
68-
65+
> You should never create an instance of an <xref:System.ComponentModel.EnumConverter>. Instead, call the <xref:System.ComponentModel.TypeDescriptor.GetConverter%2A> method of the <xref:System.ComponentModel.TypeDescriptor> class. For more information, see the examples in the <xref:System.ComponentModel.TypeConverter> base class.
66+
6967
## Examples
7068
The following code example converts a variable of type <xref:System.Enum> to a string, and vice versa. The example requires that you have declared an <xref:System.Enum> called `Servers` and that it has the following members:
7169
@@ -140,6 +138,8 @@ Windows=1, Exchange=2, BizTalk=3
140138
<param name="type">A <see cref="T:System.Type" /> that represents the type of enumeration to associate with this enumeration converter.</param>
141139
<summary>Initializes a new instance of the <see cref="T:System.ComponentModel.EnumConverter" /> class for the given type.</summary>
142140
<remarks>To be added.</remarks>
141+
<exception cref="T:System.ArgumentException">.NET 9 and later versions: <paramref name="type" /> is not of an enum type.
142+
</exception>
143143
</Docs>
144144
</Member>
145145
<Member MemberName="CanConvertFrom">

0 commit comments

Comments
 (0)