Table of Contents

Class RuntimeEnvironmentProfile

Namespace
RDCore.SDK.Runtime
Assembly
RDCore.SDK.dll

The default IRuntimeEnvironmentProfile implementation.

public sealed record RuntimeEnvironmentProfile : IRuntimeEnvironmentProfile, IEquatable<RuntimeEnvironmentProfile>
Inheritance
RuntimeEnvironmentProfile
Implements
Inherited Members

Constructors

RuntimeEnvironmentProfile(bool, int, int, bool)

The default IRuntimeEnvironmentProfile implementation.

public RuntimeEnvironmentProfile(bool Is64Bit, int Lcid, int AnsiCodePage, bool SupportsOptionCompareDatabase)

Parameters

Is64Bit bool

Whether the environment is 64-bit.

Lcid int

The environment LCID; 0 for the invariant locale.

AnsiCodePage int

The ANSI code page for Byte()String.

SupportsOptionCompareDatabase bool

Whether Option Compare Database is supported.

Properties

AnsiCodePage

The ANSI code page for Byte()String.

public int AnsiCodePage { get; init; }

Property Value

int

Culture

The CultureInfo for Lcid — drives Option Compare Text, Like, Format$, and number / date let-coercion to and from String.

public CultureInfo Culture { get; }

Property Value

CultureInfo

Default

A 64-bit, current-culture, Windows-1252, no-Option Compare Database profile for design-time and tests.

public static IRuntimeEnvironmentProfile Default { get; }

Property Value

IRuntimeEnvironmentProfile

Is64Bit

Whether the environment is 64-bit.

public bool Is64Bit { get; init; }

Property Value

bool

Lcid

The environment LCID; 0 for the invariant locale.

public int Lcid { get; init; }

Property Value

int

SupportsOptionCompareDatabase

Whether Option Compare Database is supported.

public bool SupportsOptionCompareDatabase { get; init; }

Property Value

bool

Methods

From(SdkEnvironmentOptions)

Builds a profile from bound appsettings.json options.

public static RuntimeEnvironmentProfile From(SdkEnvironmentOptions options)

Parameters

options SdkEnvironmentOptions

Returns

RuntimeEnvironmentProfile