15 references to GetValueOrDefault
aspire (2)
Projects\ProjectUpdater.cs (2)
1023var originalPatterns = originalMappings.GetValueOrDefault(source, []); 1024var proposedPatterns = proposedMappings.GetValueOrDefault(source, []);
Aspire.Dashboard (1)
Model\GenAI\GenAIVisualizerDialogViewModel.cs (1)
446return message.TryGetValue("role", out var r) ? r : message.GetValueOrDefault("message.role", defaultRole);
HelixTestTasks (1)
ComputeBatchTimeout.cs (1)
88int count = counts.GetValueOrDefault(bid, 1);
Microsoft.TemplateEngine.Cli (5)
PostActionProcessors\AddJsonPropertyPostActionProcessor.cs (5)
92if (!bool.TryParse(action.Args.GetValueOrDefault(DetectRepoRoot, "false"), out bool detectRepoRoot)) 98if (!bool.TryParse(action.Args.GetValueOrDefault(IncludeAllDirectoriesInSearch, "true"), out bool includeAllDirectories)) 106if (!bool.TryParse(action.Args.GetValueOrDefault(IncludeAllParentDirectoriesInSearch, "false"), out bool includeAllParentDirectories)) 122if (!bool.TryParse(action.Args.GetValueOrDefault(AllowFileCreationArgument, "false"), out bool createFile)) 184if (!bool.TryParse(action.Args.GetValueOrDefault(AllowPathCreationArgument, "false"), out bool createPath))
System.ComponentModel.TypeConverter (4)
System\ComponentModel\ComponentResourceManager.cs (1)
115resources = _resourceSets.GetValueOrDefault(culture, defaultValue: null);
System\ComponentModel\PropertyDescriptor.cs (3)
428_valueChangedHandlers?.GetValueOrDefault(component, defaultValue: null)?.Invoke(component, e); 444EventHandler? h = _valueChangedHandlers.GetValueOrDefault(component, defaultValue: null); 467return _valueChangedHandlers.GetValueOrDefault(component, defaultValue: null);
System.Private.CoreLib (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\CollectionExtensions.cs (1)
12dictionary.GetValueOrDefault(key, default!);
System.Windows.Forms (1)
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.TableLayoutSettingsStub.cs (1)
106return _controlsInfo.GetValueOrDefault(controlName, s_defaultControlInfo);