Search Results for

    Show / Hide Table of Contents

    Class TextReaderSource

    A ITextSource implementation that uses a TextReader as source.

    Inheritance
    object
    TextReaderSource
    Implements
    ITextSource
    IDisposable
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: FluentMigrator.Runner.BatchParser.Sources
    Assembly: FluentMigrator.Runner.Core.dll
    Syntax
    public class TextReaderSource : ITextSource, IDisposable

    Constructors

    TextReaderSource(TextReader)

    Initializes a new instance of the TextReaderSource class.

    Declaration
    public TextReaderSource(TextReader reader)
    Parameters
    Type Name Description
    TextReader reader

    The text reader to use

    Remarks

    This function doesn't take ownership of the reader.

    TextReaderSource(TextReader, bool)

    Initializes a new instance of the TextReaderSource class.

    Declaration
    public TextReaderSource(TextReader reader, bool takeOwnership)
    Parameters
    Type Name Description
    TextReader reader

    The text reader to use

    bool takeOwnership

    true when the TextReaderSource should become the owner of the reader

    Methods

    CreateReader()

    Creates a reader

    Declaration
    public ILineReader CreateReader()
    Returns
    Type Description
    ILineReader

    null when no content was available

    Dispose()

    Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

    Declaration
    public void Dispose()

    Implements

    ITextSource
    IDisposable
    In this article
    Back to top
    Copyright © 2018 Fluent Migrator Project
    Generated by DocFX
    Creative Commons License
    FluentMigrator Documentation by FluentMigrator Project is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.