Class DocumentReaderWriterRegistry
An implementation of IGetsDocumentReaderWriterForFile which makes use of EnvironmentRegistry and a System.IServiceProvider to get instances of IReadsAndWritesDocument for a given filename or path.
Inheritance
System.Object
DocumentReaderWriterRegistry
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ZptSharp.Dom
Assembly: ZptSharp.dll
Syntax
public class DocumentReaderWriterRegistry : IGetsDocumentReaderWriterForFile
Constructors
| Improve this Doc View SourceDocumentReaderWriterRegistry(EnvironmentRegistry, IServiceProvider)
Initializes a new instance of DocumentReaderWriterRegistry.
Declaration
public DocumentReaderWriterRegistry(EnvironmentRegistry typeRegistry, IServiceProvider serviceProvider)
Parameters
Type | Name | Description |
---|---|---|
EnvironmentRegistry | typeRegistry | The document provider types registry. |
System.IServiceProvider | serviceProvider | A service provider. |
Methods
| Improve this Doc View SourceGetDocumentProvider(String)
Gets the document reader/writer for the specified filename.
Declaration
public IReadsAndWritesDocument GetDocumentProvider(string filenameOrPath)
Parameters
Type | Name | Description |
---|---|---|
System.String | filenameOrPath | A document filename (optionally with its full path). |
Returns
Type | Description |
---|---|
IReadsAndWritesDocument | The document reader/writer. |