Skip to content

Commit 5cadb23

Browse files
pkulikovBillWagner
authored andcommitted
Update Object.xml (dotnet#2462)
1 parent 018d6b0 commit 5cadb23

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

xml/System/Object.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@
3939
</Attribute>
4040
</Attributes>
4141
<Docs>
42-
<summary>Supports all classes in the .NET Framework class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all classes in the .NET Framework; it is the root of the type hierarchy.</summary>
42+
<summary>Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.</summary>
4343
<remarks>
4444
<format type="text/markdown"><![CDATA[
4545
4646
## Remarks
4747
Languages typically do not require a class to declare inheritance from <xref:System.Object> because the inheritance is implicit.
4848
49-
Because all classes in the .NET Framework are derived from <xref:System.Object>, every method defined in the <xref:System.Object> class is available in all objects in the system. Derived classes can and do override some of these methods, including:
49+
Because all classes in .NET are derived from <xref:System.Object>, every method defined in the <xref:System.Object> class is available in all objects in the system. Derived classes can and do override some of these methods, including:
5050
5151
- <xref:System.Object.Equals%2A> - Supports comparisons between objects.
5252
@@ -597,7 +597,7 @@ and the <xref:System.IDisposable> interface. The <xref:System.IDisposable.Dispos
597597
> [!NOTE]
598598
> For information about how hash codes are used in hash tables and for some additional hash code algorithms, see the [Hash Function](https://en.wikipedia.org/wiki/Hash_function) entry in Wikipedia.
599599
600-
Two objects that are equal return hash codes that are equal. However, the reverse is not true: equal hash codes do not imply object equality, because different (unequal) objects can have identical hash codes. Furthermore, the .NET Framework does not guarantee the default implementation of the <xref:System.Object.GetHashCode%2A> method, and the value this method returns may differ between .NET Framework versions and platforms, such as 32-bit and 64-bit platforms. For these reasons, do not use the default implementation of this method as a unique object identifier for hashing purposes. Two consequences follow from this:
600+
Two objects that are equal return hash codes that are equal. However, the reverse is not true: equal hash codes do not imply object equality, because different (unequal) objects can have identical hash codes. Furthermore, .NET does not guarantee the default implementation of the <xref:System.Object.GetHashCode%2A> method, and the value this method returns may differ between .NET implementations, such as different versions of .NET Framework and .NET Core, and platforms, such as 32-bit and 64-bit platforms. For these reasons, do not use the default implementation of this method as a unique object identifier for hashing purposes. Two consequences follow from this:
601601
602602
- You should not assume that equal hash codes imply object equality.
603603
@@ -747,7 +747,7 @@ and the <xref:System.IDisposable> interface. The <xref:System.IDisposable.Dispos
747747
<format type="text/markdown"><![CDATA[
748748
749749
## Remarks
750-
Because <xref:System.Object?displayProperty=nameWithType> is the base class for all types in the .NET Framework type system, the <xref:System.Object.GetType%2A> method can be used to return <xref:System.Type> objects that represent all .NET Framework types. The .NET Framework recognizes the following five categories of types:
750+
Because <xref:System.Object?displayProperty=nameWithType> is the base class for all types in the .NET type system, the <xref:System.Object.GetType%2A> method can be used to return <xref:System.Type> objects that represent all .NET types. .NET recognizes the following five categories of types:
751751
752752
- Classes, which are derived from <xref:System.Object?displayProperty=nameWithType>,
753753
@@ -1024,12 +1024,12 @@ and the <xref:System.IDisposable> interface. The <xref:System.IDisposable.Dispos
10241024
[!code-csharp[System.Object.ToString#3](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.object.tostring/cs/tostring3.cs#3)]
10251025
[!code-vb[System.Object.ToString#3](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.object.tostring/vb/tostring3.vb#3)]
10261026
1027-
The following table lists the type categories in the .NET Framework and indicates whether or not they override the <xref:System.Object.ToString%2A?displayProperty=nameWithType> method.
1027+
The following table lists the type categories in .NET and indicates whether or not they override the <xref:System.Object.ToString%2A?displayProperty=nameWithType> method.
10281028
10291029
|Type category|Overrides Object.ToString()|Behavior|
10301030
|-------------------|-----------------------------------|--------------|
10311031
|Class|n/a|n/a|
1032-
|Structure|Yes (<xref:System.ValueType.ToString%2A?displayProperty=nameWithType>)|Same as Object.ToString()|
1032+
|Structure|Yes (<xref:System.ValueType.ToString%2A?displayProperty=nameWithType>)|Same as `Object.ToString()`|
10331033
|Enumeration|Yes (<xref:System.Enum.ToString?displayProperty=nameWithType>)|The member name|
10341034
|Interface|No|n/a|
10351035
|Delegate|No|n/a|
@@ -1167,4 +1167,4 @@ and the <xref:System.IDisposable> interface. The <xref:System.IDisposable.Dispos
11671167
</Docs>
11681168
</Member>
11691169
</Members>
1170-
</Type>
1170+
</Type>

0 commit comments

Comments
 (0)