Search Results for

    Show / Hide Table of Contents

    Class EnvReader

    Defines the methods used to read environment variables from a specific provider.

    Inheritance
    Object
    EnvReader
    Implements
    IEnvReader
    IEnumerable<KeyValuePair<String, String>>
    IEnumerable
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: DotEnv.Core
    Assembly: DotEnv.Core.dll
    Syntax
    public class EnvReader : IEnvReader, IEnumerable<KeyValuePair<string, string>>, IEnumerable

    Constructors

    Name Description
    EnvReader()

    Initializes a new instance of the EnvReader class.

    EnvReader(IEnvironmentVariablesProvider)

    Initializes a new instance of the EnvReader class with environment variables provider.

    Properties

    Name Description
    Instance

    Gets an instance of type EnvReader.

    Item[String]

    Gets the value of a variable in string format.

    Methods

    Name Description
    EnvBool(String, Boolean)

    Gets the value of a variable in bool format.

    EnvByte(String, Byte)

    Gets the value of a variable in byte format.

    EnvChar(String, Char)

    Gets the value of a variable in char format.

    EnvDecimal(String, Decimal)

    Gets the value of a variable in decimal format.

    EnvDouble(String, Double)

    Gets the value of a variable in double format.

    EnvFloat(String, Single)

    Gets the value of a variable in float format.

    EnvInt(String, Int32)

    Gets the value of a variable in int format.

    EnvLong(String, Int64)

    Gets the value of a variable in long format.

    EnvSByte(String, SByte)

    Gets the value of a variable in sbyte format.

    EnvShort(String, Int16)

    Gets the value of a variable in short format.

    EnvString(String, String)

    Gets the value of a variable in string format.

    EnvUInt(String, UInt32)

    Gets the value of a variable in uint format.

    EnvULong(String, UInt64)

    Gets the value of a variable in ulong format.

    EnvUShort(String, UInt16)

    Gets the value of a variable in ushort format.

    GetBoolValue(String)

    Gets the value of a variable in bool format.

    GetByteValue(String)

    Gets the value of a variable in byte format.

    GetCharValue(String)

    Gets the value of a variable in char format.

    GetDecimalValue(String)

    Gets the value of a variable in decimal format.

    GetDoubleValue(String)

    Gets the value of a variable in double format.

    GetFloatValue(String)

    Gets the value of a variable in float format.

    GetIntValue(String)

    Gets the value of a variable in int format.

    GetLongValue(String)

    Gets the value of a variable in long format.

    GetSByteValue(String)

    Gets the value of a variable in sbyte format.

    GetShortValue(String)

    Gets the value of a variable in short format.

    GetStringValue(String)

    Gets the value of a variable in string format.

    GetUIntValue(String)

    Gets the value of a variable in uint format.

    GetULongValue(String)

    Gets the value of a variable in ulong format.

    GetUShortValue(String)

    Gets the value of a variable in ushort format.

    HasValue(String)

    Checks if the variable has a value.

    TryGetBoolValue(String, out Boolean)

    Try to retrieve the value of a variable in bool format.

    TryGetByteValue(String, out Byte)

    Try to retrieve the value of a variable in byte format.

    TryGetCharValue(String, out Char)

    Try to retrieve the value of a variable in char format.

    TryGetDecimalValue(String, out Decimal)

    Try to retrieve the value of a variable in decimal format.

    TryGetDoubleValue(String, out Double)

    Try to retrieve the value of a variable in double format.

    TryGetFloatValue(String, out Single)

    Try to retrieve the value of a variable in float format.

    TryGetIntValue(String, out Int32)

    Try to retrieve the value of a variable in int format.

    TryGetLongValue(String, out Int64)

    Try to retrieve the value of a variable in long format.

    TryGetSByteValue(String, out SByte)

    Try to retrieve the value of a variable in sbyte format.

    TryGetShortValue(String, out Int16)

    Try to retrieve the value of a variable in short format.

    TryGetStringValue(String, out String)

    Try to retrieve the value of a variable in string format.

    TryGetUIntValue(String, out UInt32)

    Try to retrieve the value of a variable in uint format.

    TryGetULongValue(String, out UInt64)

    Try to retrieve the value of a variable in ulong format.

    TryGetUShortValue(String, out UInt16)

    Try to retrieve the value of a variable in ushort format.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright ©2021 DotEnv.Core