Show / Hide Table of Contents

    Class AssemblyExtensions

    Inheritance
    System.Object
    AssemblyExtensions
    Namespace: Lucene.Net.Support
    Assembly: Lucene.Net.dll
    Syntax
    public static class AssemblyExtensions : object

    Methods

    | Improve this Doc View Source

    FindAndGetManifestResourceStream(Assembly, Type, String)

    Aggressively searches for a resource and, if found, returns an open where it can be read.

    Declaration
    public static Stream FindAndGetManifestResourceStream(this Assembly assembly, Type type, string name)
    Parameters
    Type Name Description
    Assembly assembly

    this assembly

    Type type

    a type in the same namespace as the resource

    System.String name

    the resource name to locate

    Returns
    Type Description
    Stream

    an open that can be used to read the resource, or null if the resource cannot be found.

    | Improve this Doc View Source

    FindResource(Assembly, Type, String)

    Aggressively searches to find a resource based on a and resource name.

    Declaration
    public static string FindResource(this Assembly assembly, Type type, string name)
    Parameters
    Type Name Description
    Assembly assembly

    this assembly

    Type type

    a type in the same namespace as the resource

    System.String name

    the resource name to locate

    Returns
    Type Description
    System.String

    the resource, if found; if not found, returns null

    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)