Class ResourceLoader
Resource loader class.
Inheritance
System.Object
ResourceLoader
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: FastReport.Utils
Assembly: FastReport.OpenSource.dll
Syntax
public static class ResourceLoader
Methods
GetStream(String)
Gets a stream from FastReport assembly resource.
Declaration
public static Stream GetStream(string resource)
Parameters
Type | Name | Description |
---|---|---|
System.String | resource | Resource name. |
Returns
Type | Description |
---|---|
System.IO.Stream | Stream object. |
GetStream(String, String)
Gets a stream from specified assembly resource.
Declaration
public static Stream GetStream(string assembly, string resource)
Parameters
Type | Name | Description |
---|---|---|
System.String | assembly | Assembly name. |
System.String | resource | Resource name. |
Returns
Type | Description |
---|---|
System.IO.Stream | Stream object. |
UnpackStream(String)
Gets a stream from specified FastReport assembly resource and unpacks it.
Declaration
public static Stream UnpackStream(string resource)
Parameters
Type | Name | Description |
---|---|---|
System.String | resource | Resource name. |
Returns
Type | Description |
---|---|
System.IO.Stream | Stream object. |
UnpackStream(String, String)
Gets a stream from specified assembly resource and unpacks it.
Declaration
public static Stream UnpackStream(string assembly, string resource)
Parameters
Type | Name | Description |
---|---|---|
System.String | assembly | Assembly name. |
System.String | resource | Resource name. |
Returns
Type | Description |
---|---|
System.IO.Stream | Stream object. |