Skip to content

Commit 4810ec9

Browse files
authored
MyStringBuilder -> myStringBuilder
1 parent 531a322 commit 4810ec9

File tree

1 file changed

+18
-18
lines changed
  • snippets/visualbasic/VS_Snippets_CLR/Conceptual.StringBuilder/vb

1 file changed

+18
-18
lines changed

snippets/visualbasic/VS_Snippets_CLR/Conceptual.StringBuilder/vb/Example.vb

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -19,24 +19,24 @@ Module Example
1919

2020
Private Sub InstantiateStringBuilder()
2121
' <Snippet1>
22-
Dim MyStringBuilder As New StringBuilder("Hello World!")
22+
Dim myStringBuilder As New StringBuilder("Hello World!")
2323
' </Snippet1>
2424
End Sub
2525

2626
Private Sub InstantiateWithCapacity()
2727
' <Snippet2>
28-
Dim MyStringBuilder As New StringBuilder("Hello World!", 25)
28+
Dim myStringBuilder As New StringBuilder("Hello World!", 25)
2929
' </Snippet2>
3030
' <Snippet3>
31-
MyStringBuilder.Capacity = 25
31+
myStringBuilder.Capacity = 25
3232
' </Snippet3>
3333
End Sub
3434

3535
Private Sub Appending()
3636
' <Snippet4>
37-
Dim MyStringBuilder As New StringBuilder("Hello World!")
38-
MyStringBuilder.Append(" What a beautiful day.")
39-
Console.WriteLine(MyStringBuilder)
37+
Dim myStringBuilder As New StringBuilder("Hello World!")
38+
myStringBuilder.Append(" What a beautiful day.")
39+
Console.WriteLine(myStringBuilder)
4040
' The example displays the following output:
4141
' Hello World! What a beautiful day.
4242
' </Snippet4>
@@ -45,39 +45,39 @@ Module Example
4545
Private Sub AppendingFormat()
4646
' <Snippet5>
4747
Dim MyInt As Integer = 25
48-
Dim MyStringBuilder As New StringBuilder("Your total is ")
49-
MyStringBuilder.AppendFormat("{0:C} ", MyInt)
50-
Console.WriteLine(MyStringBuilder)
48+
Dim myStringBuilder As New StringBuilder("Your total is ")
49+
myStringBuilder.AppendFormat("{0:C} ", MyInt)
50+
Console.WriteLine(myStringBuilder)
5151
' The example displays the following output:
5252
' Your total is $25.00
5353
' </Snippet5>
5454
End Sub
5555

5656
Private Sub Inserting()
5757
' <Snippet6>
58-
Dim MyStringBuilder As New StringBuilder("Hello World!")
59-
MyStringBuilder.Insert(6, "Beautiful ")
60-
Console.WriteLine(MyStringBuilder)
58+
Dim myStringBuilder As New StringBuilder("Hello World!")
59+
myStringBuilder.Insert(6, "Beautiful ")
60+
Console.WriteLine(myStringBuilder)
6161
' The example displays the following output:
6262
' Hello Beautiful World!
6363
' </Snippet6>
6464
End Sub
6565

6666
Private Sub Removing()
6767
' <Snippet7>
68-
Dim MyStringBuilder As New StringBuilder("Hello World!")
69-
MyStringBuilder.Remove(5, 7)
70-
Console.WriteLine(MyStringBuilder)
68+
Dim myStringBuilder As New StringBuilder("Hello World!")
69+
myStringBuilder.Remove(5, 7)
70+
Console.WriteLine(myStringBuilder)
7171
' The example displays the following output:
7272
' Hello
7373
' </Snippet7>
7474
End Sub
7575

7676
Private Sub Replacing()
7777
' <Snippet8>
78-
Dim MyStringBuilder As New StringBuilder("Hello World!")
79-
MyStringBuilder.Replace("!"c, "?"c)
80-
Console.WriteLine(MyStringBuilder)
78+
Dim myStringBuilder As New StringBuilder("Hello World!")
79+
myStringBuilder.Replace("!"c, "?"c)
80+
Console.WriteLine(myStringBuilder)
8181
' The example displays the following output:
8282
' Hello World?
8383
' </Snippet8>

0 commit comments

Comments
 (0)