Skip to content

Commit 3645e28

Browse files
committed
delete code example text from obsolete types
1 parent a33f8fb commit 3645e28

28 files changed

+856
-3963
lines changed

xml/System.Collections/CaseInsensitiveHashCodeProvider.xml

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,6 @@
8282
8383
The objects used as keys by a <xref:System.Collections.Hashtable> are required to override the <xref:System.Object.GetHashCode%2A?displayProperty=nameWithType> method (or the <xref:System.Collections.IHashCodeProvider> interface) and the <xref:System.Object.Equals%2A?displayProperty=nameWithType> method (or the <xref:System.Collections.IComparer> interface). The implementation of both methods or interfaces must handle case sensitivity the same way; otherwise, the <xref:System.Collections.Hashtable> might behave incorrectly. For example, when creating a <xref:System.Collections.Hashtable>, you must use this class with the <xref:System.Collections.CaseInsensitiveComparer> class or any case-insensitive <xref:System.Collections.IComparer> implementation.
8484
85-
86-
87-
## Examples
88-
The following code example creates a case-sensitive hash table and a case-insensitive hash table and demonstrates the difference in their behavior, even if both contain the same elements.
89-
90-
:::code language="csharp" source="~/snippets/csharp/System.Collections/CaseInsensitiveComparer/Overview/caseinsensitive.cs" id="Snippet1":::
91-
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.Collections.CaseInsensitive/VB/caseinsensitive.vb" id="Snippet1":::
92-
9385
]]></format>
9486
</remarks>
9587
<altmember cref="T:System.Collections.Hashtable" />
@@ -150,14 +142,6 @@
150142
## Remarks
151143
When the <xref:System.Collections.CaseInsensitiveHashCodeProvider> instance is created using this constructor, the <xref:System.Threading.Thread.CurrentCulture%2A?displayProperty=nameWithType> of the current thread is saved. Comparison procedures use the saved culture to determine the casing rules; therefore, hash code comparisons might have different results depending on the culture. For more information on culture-specific comparisons, see the <xref:System.Globalization> namespace and [Globalization and Localization](/dotnet/standard/globalization-localization/).
152144
153-
154-
155-
## Examples
156-
The following code example creates a case-sensitive hash table and a case-insensitive hash table and demonstrates the difference in their behavior, even if both contain the same elements.
157-
158-
:::code language="csharp" source="~/snippets/csharp/System.Collections/CaseInsensitiveComparer/Overview/caseinsensitive.cs" id="Snippet1":::
159-
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.Collections.CaseInsensitive/VB/caseinsensitive.vb" id="Snippet1":::
160-
161145
]]></format>
162146
</remarks>
163147
<altmember cref="P:System.Threading.Thread.CurrentCulture" />
@@ -210,14 +194,6 @@
210194
## Remarks
211195
Comparison procedures use the specified <xref:System.Globalization.CultureInfo?displayProperty=nameWithType> to determine the casing rules. Hash code comparisons might have different results depending on the culture. For more information on culture-specific comparisons, see the <xref:System.Globalization> namespace and [Globalization and Localization](/dotnet/standard/globalization-localization/).
212196
213-
214-
215-
## Examples
216-
The following code example creates a case-sensitive hash table and a case-insensitive hash table and demonstrates the difference in their behavior, even if both contain the same elements.
217-
218-
:::code language="csharp" source="~/snippets/csharp/System.Collections/CaseInsensitiveComparer/Overview/caseinsensitive.cs" id="Snippet1":::
219-
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.Collections.CaseInsensitive/VB/caseinsensitive.vb" id="Snippet1":::
220-
221197
]]></format>
222198
</remarks>
223199
<exception cref="T:System.ArgumentNullException">
@@ -320,14 +296,6 @@
320296
## Remarks
321297
Comparison procedures use the <xref:System.Globalization.CultureInfo.InvariantCulture%2A?displayProperty=nameWithType> to determine the casing rules. Hash code comparisons might have different results depending on the culture. For more information on culture-specific comparisons, see the <xref:System.Globalization> namespace and [Globalization and Localization](/dotnet/standard/globalization-localization/).
322298
323-
324-
325-
## Examples
326-
The following code example creates a case-sensitive hash table and a case-insensitive hash table and demonstrates the difference in their behavior, even if both contain the same elements.
327-
328-
:::code language="csharp" source="~/snippets/csharp/System.Collections/CaseInsensitiveComparer/Overview/caseinsensitive.cs" id="Snippet1":::
329-
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.Collections.CaseInsensitive/VB/caseinsensitive.vb" id="Snippet1":::
330-
331299
]]></format>
332300
</remarks>
333301
<altmember cref="P:System.Globalization.CultureInfo.InvariantCulture" />

xml/System.ComponentModel.Design/LocalizationExtenderProvider.xml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -52,21 +52,6 @@
5252
5353
The default serializers that ship with Visual Studio are already capable of localizing components and controls, but they only do so if they locate support for the .NET Framework localization architecture. To detect the presence of localization support, the serialization system must locate a public <xref:System.Boolean> property named "Localizable" on the root designer component. If a serializer finds this property, it searches for a property of type <xref:System.Globalization.CultureInfo> named "Language" to determine the current resource configuration. Default serializers use these properties to determine if it should localize any localizable resources of the component, and if so, what <xref:System.Globalization.CultureInfo> format the resource information should be saved in.
5454
55-
56-
57-
## Examples
58-
The following code example adds a <xref:System.ComponentModel.Design.LocalizationExtenderProvider> to a component.
59-
60-
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/LocalizationExtenderProviderExample/CPP/class1.cpp" id="Snippet2":::
61-
:::code language="csharp" source="~/snippets/csharp/System.ComponentModel.Design/LocalizationExtenderProvider/Overview/class1.cs" id="Snippet2":::
62-
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/LocalizationExtenderProviderExample/VB/class1.vb" id="Snippet2":::
63-
64-
The following code example includes an example component and designer. The designer uses a <xref:System.ComponentModel.Design.LocalizationExtenderProvider> to add localization support properties for the component.
65-
66-
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/LocalizationExtenderProviderExample/CPP/class1.cpp" id="Snippet1":::
67-
:::code language="csharp" source="~/snippets/csharp/System.ComponentModel.Design/LocalizationExtenderProvider/Overview/class1.cs" id="Snippet1":::
68-
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/LocalizationExtenderProviderExample/VB/class1.vb" id="Snippet1":::
69-
7055
]]></format>
7156
</remarks>
7257
</Docs>
@@ -99,15 +84,6 @@
9984
## Remarks
10085
By default, a new <xref:System.ComponentModel.Design.LocalizationExtenderProvider> sets the current language to <xref:System.Globalization.CultureInfo.InvariantCulture%2A>, which is the generic and default language resource setting. This setting causes a designer to generate code that references the generic language resource. You can create other <xref:System.Globalization.CultureInfo> objects to represent and identify other localized resource data that a program can use at run time.
10186
102-
103-
104-
## Examples
105-
The following code example creates a new <xref:System.ComponentModel.Design.LocalizationExtenderProvider> object.
106-
107-
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/LocalizationExtenderProviderExample/CPP/class1.cpp" id="Snippet2":::
108-
:::code language="csharp" source="~/snippets/csharp/System.ComponentModel.Design/LocalizationExtenderProvider/Overview/class1.cs" id="Snippet2":::
109-
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/LocalizationExtenderProviderExample/VB/class1.vb" id="Snippet2":::
110-
11187
]]></format>
11288
</remarks>
11389
</Docs>

0 commit comments

Comments
 (0)