Result.Map_T_(Func_T_).md

January 20, 2026 ยท View on GitHub

Atypical.VirtualFileSystem.Core

Atypical.VirtualFileSystem.Core.Result

Result.Map<T>(Func<T>) Method

Transforms the result to a result with a value.

public Atypical.VirtualFileSystem.Core.Result<T> Map<T>(System.Func<T> valueFactory);

Type parameters

T

The value type.

Parameters

valueFactory System.Func<T>

Function to create the value on success.

Returns

Atypical.VirtualFileSystem.Core.Result<T>
A result with value on success or the original error on failure.