You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All overloads are supported in: 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0
791
-
792
-
.NET Framework Client Profile
793
-
All overloads are supported in: 4, 3.5 SP1
794
-
795
-
Portable Class Library
796
-
All overloads without an <xref:System.SByte>`*` parameter are supported
797
-
798
-
.NET for Windows Store apps
799
-
All overloads without an <xref:System.SByte>`*` parameter are supported in: Windows 8
800
-
801
787
]]></format>
802
788
</remarks>
803
789
</Docs>
@@ -7839,13 +7825,14 @@ The `comparisonType` parameter is a <xref:System.StringComparison> enumeration m
7839
7825
7840
7826
Compare this method to the <xref:System.String.IsInterned%2A> method.
7841
7827
7842
-
## Version Considerations
7828
+
## Version considerations
7829
+
7843
7830
In the [!INCLUDE[net_v35SP1_long](~/includes/net-v35sp1-long-md.md)], the <xref:System.String.Intern%2A> method reverts to its behavior in the .NET Framework 1.0 and 1.1 with regard to interning the empty string. In the following example, the variable `str1` is assigned a reference to <xref:System.String.Empty?displayProperty=nameWithtype>, and the variable `str2` is assigned the reference to <xref:System.String.Empty?displayProperty=nameWithtype> that is returned by calling the <xref:System.String.Intern%2A> method after converting a <xref:System.Text.StringBuilder> object whose value is <xref:System.String.Empty?displayProperty=nameWithtype> to a string. Then the references contained in `str1` and `str2` are compared for equality.
In the [!INCLUDE[net_v10_short](~/includes/net-v10-short-md.md)], [!INCLUDE[net_v11_short](~/includes/net-v11-short-md.md)], and [!INCLUDE[net_v35SP1_short](~/includes/net-v35sp1-short-md.md)], `str1` and `str2` are equal. In the [!INCLUDE[net_v20sp1_long](~/includes/net-v20sp1-long-md.md)] and [!INCLUDE[net_v30_long](~/includes/net-v30-long-md.md)], `str1` and `str2` are not equal.
7835
+
In the [!INCLUDE[net_v20sp1_long](~/includes/net-v20sp1-long-md.md)]and [!INCLUDE[net_v30_long](~/includes/net-v30-long-md.md)], `str1` and `str2` are not equal. In all other versions, `str1` and `str2` are equal.
7849
7836
7850
7837
## Performance Considerations
7851
7838
If you are trying to reduce the total amount of memory your application allocates, keep in mind that interning a string has two unwanted side effects. First, the memory allocated for interned <xref:System.String> objects is not likely to be released until the common language runtime (CLR) terminates. The reason is that the CLR's reference to the interned <xref:System.String> object can persist after your application, or even your application domain, terminates. Second, to intern a string, you must first create the string. The memory used by the <xref:System.String> object must still be allocated, even though the memory will eventually be garbage collected.
@@ -12632,11 +12619,11 @@ The following example defines a `StripStartTags` method that uses the <xref:Syst
12632
12619
<summary>Compares this instance with a specified <see cref="T:System.Object" /> and indicates whether this instance precedes, follows, or appears in the same position in the sort order as the specified <see cref="T:System.Object" />.</summary>
12633
12620
<returns>A 32-bit signed integer that indicates whether this instance precedes, follows, or appears in the same position in the sort order as the <paramref name="value" /> parameter.
12634
12621
12635
-
<list type="table"><listheader><term>Value</term><description>Condition</description></listheader><item><term>Less than zero</term><description>This instance precedes <paramref name="value" />.</description></item><item><term>Zero</term><description>This instance has the same position in the sort order as <paramref name="value" />.</description></item><item><term>Greater than zero</term><description>This instance follows <paramref name="value" />.
12622
+
<list type="table"><listheader><term>Value</term><description>Condition</description></listheader><item><term>Less than zero</term><description>This instance precedes <paramref name="value" />.</description></item><item><term>Zero</term><description>This instance has the same position in the sort order as <paramref name="value" />.</description></item><item><term>Greater than zero</term><description>This instance follows <paramref name="value" />.
12636
12623
12637
-
-or-
12624
+
-or-
12638
12625
12639
-
<paramref name="value" /> is <see langword="null" />.</description></item></list></returns>
12626
+
<paramref name="value" /> is <see langword="null" />.</description></item></list></returns>
0 commit comments