Aether Utilities Aether Utilities
Aether Utilities Aether Utilities
DocFX + Singulink = ♥

Search Results for

    Edit this page

    Class AssemblyExtensions

    Namespace
    AetherUtils.Core.Extensions
    Assembly
    AetherUtils.Core.dll
    Provides extension methods for getting data from an Assembly.
    public static class AssemblyExtensions
    Inheritance
    object
    AssemblyExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()

    Methods

    AddFontResource(Assembly, string, PrivateFontCollection)

    Get the specified embedded font resource from the Assembly and add it to the PrivateFontCollection.
    public static PrivateFontCollection AddFontResource(this Assembly assembly, string resourceName, PrivateFontCollection fontCollection)

    Parameters

    assembly Assembly
    The Assembly to read the resource from.
    resourceName string
    The name of the resource, including the namespace.
    fontCollection PrivateFontCollection
    The PrivateFontCollection to add the read font to.

    Returns

    PrivateFontCollection
    The modified PrivateFontCollection after the font has been added, or the original PrivateFontCollection if the font could not be added.

    GetResourceAsStream(Assembly, string)

    Get the specified embedded resource from the Assembly as a raw stream.
    [UsedImplicitly]
    public static Stream? GetResourceAsStream(this Assembly assembly, string resourceName)

    Parameters

    assembly Assembly
    The Assembly to read the resource from.
    resourceName string
    The name of the resource, including the namespace.

    Returns

    Stream
    A raw Stream representing the resource, or null if the resource wasn't found.

    GetStringResource(Assembly, string)

    Get the specified embedded resource from the Assembly.
    [UsedImplicitly]
    public static string? GetStringResource(this Assembly assembly, string resourceName)

    Parameters

    assembly Assembly
    The Assembly to read the resource from.
    resourceName string
    The name of the resource, including the namespace.

    Returns

    string
    A string representing the resource, or null if the resource wasn't found.
    (c) 2024 Ethan Hann. All rights reserved.