Show / Hide Table of Contents

Class TextUnpacker

AssemblyUnpacker<T> that extracts text resources.

Inheritance
object
AssemblyUnpacker<string>
TextUnpacker
Implements
IUnpacker<string>
Inherited Members
AssemblyUnpacker<string>.UnpackStream(string)
AssemblyUnpacker<string>.UnpackStream(string, ICompressorGetter)
AssemblyUnpacker<string>.TryUnpack(string, out string)
AssemblyUnpacker<string>.TryUnpack(string, ICompressorGetter, out string)
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 TextUnpacker : AssemblyUnpacker<string>, IUnpacker<string>

Constructors

| Edit this page View Source

TextUnpacker(Assembly, string)

AssemblyUnpacker<T> that extracts text resources.

Declaration
public TextUnpacker(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.

Methods

| Edit this page View Source

Unpack(string)

Gets a resource identifiable by its ID.

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

The identifier of the resource.

Returns
Type Description
string

A string with the total content of the resource.

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

Unpack(string, ICompressorGetter)

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

Declaration
public override string 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
string

An uncompressed resource as a string.

Overrides
AssemblyUnpacker<string>.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