Constructors: NewStringReader

NewStringReader

Returns a new StringReader object.



 Public Function NewStringReader(
	  ByRef s As String,
	  Optional ByVal CopyString As Boolean ) As StringReader

Parameters

s
[ByRef] String. The string to be read from.
CopyString
[ByVal] Optional. Boolean. Indicates that StringReader should copy the string or reference the original.

Return Values

StringReader -  The new StringReader object.

Remarks

By default the parameter s is referenced internally. This requires the original holder of the string variable to remain valid until StringReader has been disposed. If the original string cannot be maintained, then passing True for CopyString will cause StringReader to make a copy of the source string to prevent any string deallocation issues.

See Also

Project CorLib Overview

Class Constructors Overview