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