Skip to content

Commit fd77528

Browse files
eriawanEriawan Kusumawardhono
andauthored
Fixes #24673 doc conflates GetType(TypeName), Type.GetType, and Object.GetType (#25221)
* Fix #24673 doc conflates GetType(TypeName), Type.GetType, and Object.GetType Author: eriawan <[email protected]> * remove blank line Co-authored-by: Eriawan Kusumawardhono <[email protected]>
1 parent 79d2a1d commit fd77528

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/visual-basic/language-reference/operators/gettype-operator.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,11 @@ GetType(typename)
4141

4242
- Any enumeration defined by Visual Basic, the .NET Framework, or your application.
4343

44-
If you want to get the type object of an object variable, use the <xref:System.Type.GetType%2A?displayProperty=nameWithType> method.
44+
If you want to get the type object of an object variable, use the <xref:System.Object.GetType%2A?displayProperty=nameWithType> method.
4545

46-
The `GetType` operator can be useful in the following circumstances:
46+
The `GetType` operator can be useful in the following circumstance:
4747

48-
- You must access the metadata for a type at run time. The <xref:System.Type> object supplies metadata such as type members and deployment information. You need this, for example, to reflect over an assembly. For more information, see <xref:System.Reflection?displayProperty=nameWithType>.
49-
50-
- You want to compare two object references to see if they refer to instances of the same type. If they do, `GetType` returns references to the same <xref:System.Type> object.
48+
- You must access the metadata for a type at run time. The <xref:System.Type> object supplies metadata such as type members and deployment information. You need this, for example, to reflect over an assembly. For more information, see also <xref:System.Reflection?displayProperty=nameWithType>.
5149

5250
## Example
5351

@@ -60,3 +58,5 @@ GetType(typename)
6058
- [Operator Precedence in Visual Basic](operator-precedence.md)
6159
- [Operators Listed by Functionality](operators-listed-by-functionality.md)
6260
- [Operators and Expressions](../../programming-guide/language-features/operators-and-expressions/index.md)
61+
- <xref:System.Object.GetType%2A?displayProperty=nameWithType>
62+
- <xref:System.Type.GetType%2A?displayProperty=nameWithType>

0 commit comments

Comments
 (0)