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