Show / Hide Table of Contents

    Class EmbeddedResourceLoader

    Inheritance
    System.Object
    EmbeddedResourceLoader
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Mapsui.Utilities
    Assembly: Mapsui.dll
    Syntax
    public static class EmbeddedResourceLoader

    Methods

    | Improve this Doc View Source

    Load(String, Type)

    Declaration
    public static Stream Load(string relativePathToEmbeddedResource, Type typeInAssemblyOfEmbeddedResource)
    Parameters
    Type Name Description
    System.String relativePathToEmbeddedResource

    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.

    System.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
    System.IO.Stream
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX