Skip to content

Commit d64422c

Browse files
Change Int32 to Integer for Tuples in VB. (#24851)
* Change Int32 to Integer. * Apply suggestions from code review --------- Co-authored-by: Bill Wagner <[email protected]>
1 parent e8f8a0a commit d64422c

File tree

1 file changed

+2
-2
lines changed
  • docs/visual-basic/programming-guide/language-features/data-types

1 file changed

+2
-2
lines changed

docs/visual-basic/programming-guide/language-features/data-types/tuples.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,11 @@ A method can return only a single value. Frequently, though, you'd like a method
146146

147147
- You can use a tuple, which provides a lightweight solution to retrieving multiple return values.
148148

149-
For example, the **TryParse** methods in .NET return a `Boolean` value that indicates whether the parsing operation succeeded. The result of the parsing operation is returned in a variable passed by reference to the method. Normally, a call to a parsing method such as <xref:System.Int32.TryParse%2A?displayProperty=nameWithType> looks like the following:
149+
For example, the **TryParse** methods in .NET return a `Boolean` value that indicates whether the parsing operation succeeded. The result of the parsing operation is returned in a variable passed by reference to the method. Normally, a call to a parsing method such as [Integer.TryParse](xref:System.Int32.TryParse%2A) looks like the following:
150150

151151
:::code language="vb" source="../../../../../samples/snippets/visualbasic/programming-guide/language-features/data-types/tuples/tuple-returns.vb" id="StandardMethodCall":::
152152

153-
We can return a tuple from the parsing operation if we wrap the call to the <xref:System.Int32.TryParse%2A?displayProperty=nameWithType> method in our own method. In the following example, `NumericLibrary.ParseInteger` calls the <xref:System.Int32.TryParse%2A?displayProperty=nameWithType> method and returns a named tuple with two elements.
153+
We can return a tuple from the parsing operation if we wrap the call to the [Integer.TryParse](xref:System.Int32.TryParse%2A) method in our own method. In the following example, `NumericLibrary.ParseInteger` calls the [Integer.TryParse](xref:System.Int32.TryParse%2A) method and returns a named tuple with two elements.
154154

155155
:::code language="vb" source="../../../../../samples/snippets/visualbasic/programming-guide/language-features/data-types/tuples/tuple-returns.vb" id="ParseIntegerReturnsTuple":::
156156

0 commit comments

Comments
 (0)