3 instantiations of Optional
Microsoft.ML.Core (3)
EntryPoints\ModuleArgs.cs (3)
694
return new
Optional
<T>(false, value);
699
return new
Optional
<T>(true, value);
716
return new
Optional
<T>(true, value);
10 references to Optional
Microsoft.ML.Core (10)
EntryPoints\EntryPointUtils.cs (5)
23
if (obj is
Optional
<T> asOptional)
69
if (fieldType.IsGenericType && fieldType.GetGenericTypeDefinition() == typeof(
Optional
<>) && fieldVal == null)
75
if (fieldType.IsGenericType && fieldType.GetGenericTypeDefinition() == typeof(
Optional
<>))
106
public static string FindColumnOrNull(IExceptionContext ectx, DataViewSchema schema,
Optional
<string> value)
127
public static T? AsNullable<T>(this
Optional
<T> opt) where T : struct
EntryPoints\ModuleArgs.cs (5)
606
if (type.IsGenericType && (type.GetGenericTypeDefinition() == typeof(
Optional
<>) || type.GetGenericTypeDefinition() == typeof(Nullable<>)))
692
public static
Optional
<T> Implicit(T value)
697
public static
Optional
<T> Explicit(T value)
705
public static implicit operator T(
Optional
<T> optional)
714
public static implicit operator
Optional
<T>(T value)