Insert xByte to StringBuilder : Byte « Data Types « VB.Net






Insert xByte to StringBuilder

   

Imports System
Imports System.Text

Class Sample
   

   Public Shared Sub Main()
      Dim sb As StringBuilder
      sb = new StringBuilder
      sb.Append("1234")
      
      Dim xByte As Byte = 1
      sb.Insert(3, xByte, 2)
      
      
      Console.WriteLine(sb.ToString())
   End Sub
End Class

   
    
    
  








Related examples in the same category

1.Generic and nongeneric versions of the CompareTo method for Byte value
2.Use the Sign(Byte) method to determine the sign of a byte value and display it to the console.
3.Byte Structure Represents an 8-bit unsigned integer.
4.Convert Integer to Byte
5.Convert Double to Byte
6.Use Convert class to convert Integer to Byte
7.Parse string to Byte
8.Parse Hex Number String to Byte
9.Convert Byte to String with default format
10.Display Byte value with 3 digits and leading zeros
11.Display byte value with hexadecimal
12.Display byte value with four hexadecimal digits
13.Display Byte Value as Binary, Octal and Hex Numbers
14.Parse Hex string to Byte
15.Bit and operation for Byte
16.Convert Hex byte value to Hex string
17.Byte.Equals Method returns a value indicating whether this instance and a specified Byte object represent the same value.
18.Byte.MaxValue
19.Byte.ToString Method converts Byte to string using culture-specific formatting information.
20.Byte.ToString (String) converts Byte to string using the specified format.
21.Byte.ToString converts Byte to string using the specified format and culture-specific formatting information.
22.Byte.ToString converts Byte to string representation.
23.Byte.TryParse tries to convert string to Byte and returns a value that indicates whether the conversion succeeded.
24.Byte.TryParse converts string in a style and culture-specific format to Byte
25.Convert Double to Byte with CByte
26.Parse string to Byte
27.Parse string to Byte as System.Globalization.NumberStyles.HexNumber
28.Byte format: D3, X2 and X4
29.Format Byte to Binary, Octal and Hex string
30.Byte value binary And operation