Search Results for

    Show / Hide Table of Contents

    Class EmbeddedResourceLoader

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

    Methods

    | Edit this page View Source

    Load(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
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX