16 references to GetValueOrDefault
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Source\SourceNamedTypeSymbol_Extension.cs (1)
1060return _lazyExtensionInfo.LazyImplementationMap.GetValueOrDefault(method);
Microsoft.CodeAnalysis.UnitTests (6)
Collections\ImmutableDictionaryTestBase.cs (1)
248Assert.Equal(default(V), empty.GetValueOrDefault(someKey));
Collections\ImmutableDictionaryTestBase.nonnetstandard.cs (1)
135AssertAreSame(value, addedMap.GetValueOrDefault(key));
Collections\ImmutableSegmentedDictionaryTest.cs (4)
227Assert.Equal(0, empty.GetValueOrDefault("a")); 229Assert.Equal(5, populated.GetValueOrDefault("a")); 238Assert.Equal(0, empty.GetValueOrDefault("a")); 240Assert.Equal(5, populated.GetValueOrDefault("a"));
Microsoft.CodeAnalysis.Workspaces (2)
Serialization\SerializerService.cs (2)
167var csOptions = ImmutableDictionary.GetValueOrDefault(optionsByLanguage, LanguageNames.CSharp); 168var vbOptions = ImmutableDictionary.GetValueOrDefault(optionsByLanguage, LanguageNames.VisualBasic);
Microsoft.VisualStudio.LanguageServices.Razor (5)
ProjectSystem\Rules\RazorComponentWithTargetPath.cs (1)
65this(GetRule(System.Collections.Immutable.ImmutableDictionary.GetValueOrDefault(catalogs, context), file, itemType, itemName))
ProjectSystem\Rules\RazorConfiguration.cs (1)
65this(GetRule(System.Collections.Immutable.ImmutableDictionary.GetValueOrDefault(catalogs, context), file, itemType, itemName))
ProjectSystem\Rules\RazorExtension.cs (1)
68this(GetRule(System.Collections.Immutable.ImmutableDictionary.GetValueOrDefault(catalogs, context), file, itemType, itemName))
ProjectSystem\Rules\RazorGeneral.cs (1)
68this(GetRule(System.Collections.Immutable.ImmutableDictionary.GetValueOrDefault(catalogs, context), file, itemType, itemName))
ProjectSystem\Rules\RazorGenerateWithTargetPath.cs (1)
65this(GetRule(System.Collections.Immutable.ImmutableDictionary.GetValueOrDefault(catalogs, context), file, itemType, itemName))
Microsoft.VisualStudio.LanguageServices.Razor.UnitTests (1)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostFoldingRangeEndpointTest.cs (1)
376var htmlSpans = spans.GetValueOrDefault("html").NullToEmpty();
Microsoft.VisualStudioCode.RazorExtension.UnitTests (1)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostFoldingRangeEndpointTest.cs (1)
376var htmlSpans = spans.GetValueOrDefault("html").NullToEmpty();