Class EmbeddedResourceLoader
Inherited Members
Namespace: Mapsui.Utilities
Assembly: Mapsui.dll
Syntax
public static class EmbeddedResourceLoader
Methods
| Edit this page View SourceLoad(string, Type)
Declaration
public static Stream Load(string relativePathToEmbeddedResource, Type typeInAssemblyOfEmbeddedResource)
Parameters
Type | Name | Description |
---|---|---|
string | relativePathToEmbeddedResource | This is the path of the resource without the assembly path but including possible project folders. So if an image 'myimage.png' is in a project folders 'images' the path is 'images.myimage.png'. Resources always uses '.' as separators. |
Type | typeInAssemblyOfEmbeddedResource | This should be a type that is in the same assembly as the EmbeddedResource. It is used to infer the full path and is necessary to load the resource. |
Returns
Type | Description |
---|---|
Stream |