Show / Hide Table of Contents

    Class StreamWriterOptions

    Specifies options that is related to System.IO.StreamWriter operations. This class cannot be inherited.

    Inheritance
    System.Object
    StreamWriterOptions
    Namespace: Cuemon.IO
    Assembly: Cuemon.IO.dll
    Syntax
    public sealed class StreamWriterOptions

    Constructors

    | Improve this Doc

    StreamWriterOptions()

    Initializes a new instance of the StreamWriterOptions class.

    Declaration
    public StreamWriterOptions()
    Remarks

    The following table shows the initial property values for an instance of StreamWriterOptions.

    PropertyInitial Value
    AutoFlushfalse
    BufferSize1024
    EncodingSystem.Text.Encoding.UTF8
    FormatProviderSystem.Globalization.CultureInfo.InvariantCulture
    NewLine\r\n

    Properties

    | Improve this Doc

    AutoFlush

    Gets or sets a value indicating whether the System.IO.StreamWriter will flush its buffer to the underlying stream after every call to the Write method.

    Declaration
    public bool AutoFlush { get; set; }
    Property Value
    Type Description
    System.Boolean

    true to force System.IO.StreamWriter to flush its buffer; otherwise, false.

    | Improve this Doc

    BufferSize

    Gets or sets the size of the buffer.

    Declaration
    public int BufferSize { get; set; }
    Property Value
    Type Description
    System.Int32

    The size of the buffer in bytes for the System.IO.StreamWriter.

    | Improve this Doc

    Encoding

    Gets or sets the Encoding in which the output is written by the System.IO.StreamWriter.

    Declaration
    public Encoding Encoding { get; set; }
    Property Value
    Type Description
    System.Text.Encoding

    The Encoding for the System.IO.StreamWriter.

    | Improve this Doc

    FormatProvider

    Gets or sets the culture-specific formatting information used when writing data with the System.IO.StreamWriter.

    Declaration
    public IFormatProvider FormatProvider { get; set; }
    Property Value
    Type Description
    System.IFormatProvider

    An System.IFormatProvider that contains the culture-specific formatting information. The default is System.Globalization.CultureInfo.InvariantCulture.

    | Improve this Doc

    NewLine

    Gets or sets the line terminator string used by the System.IO.StreamWriter.

    Declaration
    public string NewLine { get; set; }
    Property Value
    Type Description
    System.String

    The line terminator string for the System.IO.StreamWriter.

    Extension Methods

    ConverterExtensions.ParseWith<TSource, TResult>(TSource, Func<TSource, TResult>)
    ConverterExtensions.ParseWith<TSource, T, TResult>(TSource, Func<TSource, T, TResult>, T)
    ConverterExtensions.ParseWith<TSource, T1, T2, TResult>(TSource, Func<TSource, T1, T2, TResult>, T1, T2)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, TResult>(TSource, Func<TSource, T1, T2, T3, TResult>, T1, T2, T3)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, TResult>(TSource, Func<TSource, T1, T2, T3, T4, TResult>, T1, T2, T3, T4)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, TResult>, T1, T2, T3, T4, T5)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, TResult>, T1, T2, T3, T4, T5, T6)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>, T1, T2, T3, T4, T5, T6, T7)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>, T1, T2, T3, T4, T5, T6, T7, T8)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9)
    ConverterExtensions.As<TResult>(Object)
    ConverterExtensions.As<TResult>(Object, TResult)
    ConverterExtensions.As<TResult>(Object, TResult, IFormatProvider)
    DelegateUtilityExtensions.Wrap<TResult>(TResult)
    DelegateUtilityExtensions.DynamicWrap<TResult>(TResult)
    TweakerExtensions.Adjust<T>(T, Func<T, T>)
    TypeUtilityExtensions.Is<T>(Object)
    TypeUtilityExtensions.IsNot<T>(Object)
    TypeUtilityExtensions.IsNullable<T>(T)
    WrapperExtensions.UseWrapper<T>(T, Action<IDictionary<String, Object>>)
    WrapperExtensions.UseWrapper<T>(T, MemberInfo, Action<IDictionary<String, Object>>)
    EnumerableUtilityExtensions.Yield<TSource>(TSource)
    HashUtilityExtensions.ComputeHash(Object, Action<HashOptions>)
    HmacUtilityExtensions.ComputeKeyedHash(Object, Byte[], Action<KeyedHashOptions>)
    • Improve this Doc
    • View Source
    Back to top Copyright 2008-2018 Weubphoria. All rights reserved.
    Generated by DocFX