Method GetStreamFromString
GetStreamFromString(String)
Get a Stream (MemoryStream) from the given string, pointing to the start of the string. Make sure to call Dispose() on the returned Stream.
Declaration
public static Stream GetStreamFromString(string s)
Parameters
Type | Name | Description |
---|---|---|
System.String | s | String to get a stream from |
Returns
Type | Description |
---|---|
Stream | A Stream (MemoryStream) pointing to the start of the string. |