Source/Simulator/Common/Common/Optionals/Optional.cs
/// <summary>
/// Convert null to None and other values to Some(T)
/// </summary>
Convert null to None and other values to Some(T)
Convert null to None and other values to Some ( T )
public static Optional<T> ToOptional<T>(this T value) where T : class
		{
			return value != null 
				? Optional.Some(value) 
				: Optional.None();
		}
public static Optional < T > ToOptional < T > ( this T value ) where T : class { return value != null ? Optional . Some ( value ) : Optional . None ( ) ; }
Convert null to None and other values to Some(T)
Convert null to None and other values to Some ( T )
T
this