Search Results for

    Show / Hide Table of Contents

    Method ToDecimal

    | Improve this Doc View Source

    ToDecimal(ISectionsData, String, IFormatProvider)

    Convert section data to decimal.

    Declaration
    public static IEnumerable<decimal> ToDecimal(this ISectionsData sections, string sectionName, IFormatProvider provider = null)
    Parameters
    Type Name Description
    ISectionsData sections

    The data of sections.

    String sectionName

    The name of the section to convert.

    IFormatProvider provider

    An object that provides culture-specific formatting information.

    Returns
    Type Description
    IEnumerable<Decimal>

    The section data in decimal format.

    Remarks

    provider is null, the default culture is InvariantCulture.

    Exceptions
    Type Condition
    FormatException

    If the data in the section are not decimals.

    SectionNotFoundException

    If the section does not exist.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright 2021 seztion-parser