ObjectToResult<T> extension

on
  • T?

Methods

toResultOr<E>(E provider()) Result<T, E>

Available on T?, provided by the ObjectToResult extension

Creates a Result<T, E> based on the nullability of the current object. If current object is not null, then creates an Ok