C# Class Mapsui.Utilities.EmbeddedResourceLoader

Show file Open project: pauldendulk/Mapsui

Public Methods

Method Description
Load ( string relativePathToEmbeddedResource, Type typeInAssemblyOfEmbeddedResource ) : Stream

Private Methods

Method Description
ConstructExceptionMessage ( string path, Assembly assembly ) : string
GetAssemblyName ( Assembly assembly ) : string

Method Details

Load() public static method

public static Load ( string relativePathToEmbeddedResource, Type typeInAssemblyOfEmbeddedResource ) : Stream
relativePathToEmbeddedResource string This is the path of the resource without the assemlby 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.
typeInAssemblyOfEmbeddedResource System.Type 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.
return Stream