1 write to HasValue
System.Xaml.Tests (1)
Common\Optional.cs (1)
30
HasValue
= true,
9 references to HasValue
System.Xaml.Tests (9)
Common\CustomAssembly.cs (1)
38
if (GetCustomAttributesMap.
HasValue
)
Common\Optional.cs (7)
12
public readonly T Or(T value) =>
HasValue
? Value : value;
14
public readonly T Or(Func<T> valueFactory) =>
HasValue
? Value : valueFactory();
16
public readonly T Or<TArg>(Func<TArg, T> valueFactory, TArg arg) =>
HasValue
? Value : valueFactory(arg);
18
public readonly T Or<TArg1, TArg2>(Func<TArg1, TArg2, T> valueFactory, TArg1 arg1, TArg2 arg2) =>
HasValue
? Value : valueFactory(arg1, arg2);
20
public readonly T Or<TArg1, TArg2, TArg3>(Func<TArg1, TArg2, TArg3, T> valueFactory, TArg1 arg1, TArg2 arg2, TArg3 arg3) =>
HasValue
? Value : valueFactory(arg1, arg2, arg3);
22
public readonly T Or<TArg1, TArg2, TArg3, TArg4>(Func<TArg1, TArg2, TArg3, TArg4, T> valueFactory, TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4) =>
HasValue
? Value : valueFactory(arg1, arg2, arg3, arg4);
24
public readonly T Or<TArg1, TArg2, TArg3, TArg4, TArg5>(Func<TArg1, TArg2, TArg3, TArg4, TArg5, T> valueFactory, TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4, TArg5 arg5) =>
HasValue
? Value : valueFactory(arg1, arg2, arg3, arg4, arg5);
System\Xaml\XamlTypeTests.cs (1)
5194
get => AssemblyResult.
HasValue
? AssemblyResult.Value as CustomAssembly : null;