Show / Hide Table of Contents

Method ResourceUtil.GetStream


Overload

Gets stream.

public static UnmanagedMemoryStream GetStream(string name)
Parameters
name  (string)

Resource name, like "file.png" or "sub/file.png". More info: ResourceUtil.

Returns
UnmanagedMemoryStream
Exceptions
FileNotFoundException

Cannot find assembly or resource.

InvalidOperationException

The resource type is not stream.

Exception

Other exceptions that may be thrown by used .NET functions.

Remarks

Don't need to dispose the stream.