Show / Hide Table of Contents

Class Unpacker

AssemblyUnpacker<T> that exposes directly the Stream of the embedded resources of an assembly.

Inheritance
object
AssemblyUnpacker<Stream>
Unpacker
Implements
IUnpacker<Stream>
Inherited Members
AssemblyUnpacker<Stream>.UnpackStream(string)
AssemblyUnpacker<Stream>.UnpackStream(string, ICompressorGetter)
AssemblyUnpacker<Stream>.TryUnpack(string, out Stream)
AssemblyUnpacker<Stream>.TryUnpack(string, ICompressorGetter, out Stream)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: TheXDS.MCART.Resources
Assembly: MCART.dll
Syntax
public class Unpacker : AssemblyUnpacker<Stream>, IUnpacker<Stream>

Constructors

| Edit this page View Source

Unpacker(Assembly, string)

AssemblyUnpacker<T> that exposes directly the Stream of the embedded resources of an assembly.

Declaration
public Unpacker(Assembly assembly, string path)
Parameters
Type Name Description
Assembly assembly

The Assembly from which the embedded resources will be extracted.

string path

The path (in namespace format) where the embedded resources will be located.

| Edit this page View Source

Unpacker(string)

Initializes a new instance of the Unpacker, searching for the resources to extract in the assembly from which this instance is created.

Declaration
public Unpacker(string path)
Parameters
Type Name Description
string path

The path (in namespace format) where the embedded resources will be located.

| Edit this page View Source

Unpacker(Type)

Initializes a new instance of the Unpacker, searching for the resources to extract in the assembly that declares the specified type, also using it as the path reference (in namespace format) to search for the embedded resources.

Declaration
public Unpacker(Type resReference)
Parameters
Type Name Description
Type resReference

Type to take as a reference for the location of the resources.

Methods

| Edit this page View Source

Unpack(string)

Gets a resource identifiable by its ID.

Declaration
public override Stream Unpack(string id)
Parameters
Type Name Description
string id

The identifier of the resource.

Returns
Type Description
Stream

A Stream from which the embedded resource can be read.

Overrides
AssemblyUnpacker<Stream>.Unpack(string)
| Edit this page View Source

Unpack(string, ICompressorGetter?)

Extracts a compressed resource using the compressor with the specified identifier.

Declaration
public override Stream Unpack(string id, ICompressorGetter? compressor)
Parameters
Type Name Description
string id

The identifier of the resource.

ICompressorGetter compressor

The ICompressorGetter to use for extracting the resource.

Returns
Type Description
Stream

A Stream from which the embedded resource can be read uncompressed.

Overrides
AssemblyUnpacker<Stream>.Unpack(string, ICompressorGetter)

Implements

IUnpacker<T>

Extension Methods

Objects.ShallowCopyTo(object, object, Type)
ObjectExtensions.FieldsOf<T>(object)
ObjectExtensions.GetAttribute<T>(object)
ObjectExtensions.GetAttributes<T>(object)
ObjectExtensions.HasAttrValue<TAttribute, TValue>(object, out TValue)
ObjectExtensions.HasAttribute<T>(object)
ObjectExtensions.HasAttribute<T>(object, out T?)
ObjectExtensions.HasAttributes<T>(object, out IEnumerable<T>?)
ObjectExtensions.Is(object?, object?)
ObjectExtensions.IsEither(object, IEnumerable)
ObjectExtensions.IsEither(object, params object[])
ObjectExtensions.IsNeither(object, IEnumerable)
ObjectExtensions.IsNeither(object, params object[])
ObjectExtensions.IsNot(object?, object?)
ObjectExtensions.PropertiesOf<T>(object)
ObjectExtensions.WhichAre(object, IEnumerable<object>)
ObjectExtensions.WhichAre(object, params object[])
Common.IfNotNull<T>(T?, Action<T>)
Objects.Itself<T>(T)
Objects.ShallowCopyTo<T>(T, T)
CollectionExtensions.PushInto<TItem, TCollection>(TItem, ICollection<TCollection>)
DictionaryExtensions.PushInto<TKey, TValue>(TValue, TKey, IDictionary<TKey, TValue>)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX