TextResourceBase
TextResourceBase class
Base class for any supported text resource with text content and encoding
public abstract class TextResourceBase : IHtmlResource
Properties
Name |
Description |
ByteContent { get; } |
Returns content of this text resource as byte stream with original encoding |
Encoding { get; } |
Returns encoding of this textual resource. Usually returns UTF-8. |
FilenameWithExtension { get; } |
Returns correct filename of this text resource, which consists of name and extension |
IsDisposed { get; } |
Determines whether this text resource is disposed or not |
Name { get; } |
Returns name of this text resource without file extension |
TextContent { get; } |
Returns content of this text resource as a standard string |
abstract Type { get; } |
In implementing type should return information about type of the text resource |
Methods
Name |
Description |
Dispose() |
Disposes this text resource, disposing its content and making most methods and properties non-working. Tolerant to multiple calls. |
Equals(IHtmlResource) |
Checks this instance with specified on equality. |
Save(string) |
Saves this text resource to the specified file |
Events
Name |
Description |
event Disposed |
Event, which occurs when this text resource is disposed |
See Also