Table of Contents

Class AssemblyHelper

Namespace
NuvTools.Common.Reflection
Assembly
NuvTools.Common.dll

Provides helper methods for working with assemblies and embedded resources.

public static class AssemblyHelper
Inheritance
AssemblyHelper
Inherited Members

Methods

ResourceByName(string, string)

Retrieves an embedded resource stream by name from a specified assembly.

public static Stream? ResourceByName(string resourceName, string assemblyName)

Parameters

resourceName string

The name of the embedded resource to retrieve.

assemblyName string

The name of the assembly containing the resource.

Returns

Stream

A Stream containing the resource data, or null if the resource is not found.

Exceptions

ArgumentException

Thrown when resourceName or assemblyName is null or empty.