Class TextUnpacker
AssemblyUnpacker<T> that extracts text resources.
Inherited Members
Namespace: TheXDS.MCART.Resources
Assembly: MCART.dll
Syntax
public class TextUnpacker : AssemblyUnpacker<string>, IUnpacker<string>
Constructors
| Edit this page View SourceTextUnpacker(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 SourceUnpack(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
| Edit this page View SourceUnpack(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. |