Table of Contents

Class Do

Namespace
Ecng.Common
Assembly
Ecng.Common.dll

Provides utility methods to execute functions and actions under the invariant culture.

public static class Do
Inheritance
Do
Inherited Members

Methods

Invariant(Action)

Executes the specified action under the invariant culture.

public static void Invariant(Action action)

Parameters

action Action

The action to execute.

Invariant<T>(Func<T>)

Executes the specified function under the invariant culture and returns its result.

public static T Invariant<T>(Func<T> func)

Parameters

func Func<T>

The function to execute.

Returns

T

The result of executing the function.

Type Parameters

T

The type of the result produced by the function.