Hunny Software Library Reference

ByteString.Insert Method 

Inserts a ByteString instance into this instance.

[Visual Basic]
Public Function Insert( _
   ByVal startIndex As Integer, _
   ByVal str As ByteString _
) As ByteString
[C#]
public ByteString Insert(
   int startIndex,
   ByteString str
);

Parameters

startIndex
position to insert at
str
ByteString instance to insert

Return Value

new ByteString instance with the str inserted

Remarks

If startIndex is equal to the length of this instance, str is appended.

Exceptions

Exception TypeCondition
ArgumentNullExceptionstr is null
ArgumentOutOfRangeExceptionstartIndex < 0;
or startIndex > Length

See Also

ByteString Class | Hunny.Base Namespace