16 writes to Value
Microsoft.DotNet.Build.Tasks.Installers (2)
src\CreateWixCommandPackageDropBase.cs (2)
311field.Value = newRelativePath; 315field.Value = newRelativePath;
Microsoft.DotNet.XliffTasks (5)
Model\ResxDocument.cs (1)
70valueNodeOfFileRef.Value = string.Join(";", splitRelativePathAndSerializedType);
Model\TranslatableXmlDocument.cs (1)
39_element.Value = translation;
Model\XElementExtensions.cs (3)
39targetElement.Value = value; 99transUnitElement.Element(Source).Value = value; 126noteElement.Value = value;
Microsoft.Maui.Resizetizer (3)
GenerateTizenManifest.cs (3)
148 icon.Value = IconDefaultDpiType + "/" + appIconInfo.OutputName + defaultDpi.FileSuffix + IconImageExtension; 154 icon.Value = dpiValue + "/" + appIconInfo.OutputName + fileSuffix + IconImageExtension; 203 element.Value = value;
System.ComponentModel.TypeConverter (1)
MS\Internal\Xml\Linq\ComponentModel\XComponentModel.cs (1)
407_element.Value = (value as string)!;
System.Private.Xml.Linq (3)
System\Xml\Linq\XElement.cs (2)
1266e.Value = GetStringValue(value); 1292Value = GetStringValue(value);
System\Xml\Schema\XNodeValidator.cs (1)
314e.Value = GetDefaultValue(si.SchemaElement)!;
XmlFileLogger (2)
LogProcessNode.cs (1)
131propElement.Add(new XElement("Property", new XAttribute("Name", p.Key)) { Value = p.Value });
ObjectModel\Task.cs (1)
63task.Add(new XElement("CommandLineArguments") { Value = CommandLineArguments });
1521 references to Value
BuildBoss (6)
ProjectCheckerUtil.cs (1)
163return projectData.ProjectUtil.FindSingleProperty("AssemblyName")?.Value.Trim()
ProjectUtil.cs (5)
42OutputType = FindSingleProperty("OutputType")?.Value.Trim().ToLowerInvariant(); 67return new[] { targetFramework.Value.ToString() }; 73var all = targetFrameworks.Value.ToString().Split(new[] { ';' }, StringSplitOptions.RemoveEmptyEntries); 118var referenceOutputAssemblyValue = r.Element(Namespace.GetName("ReferenceOutputAssembly"))?.Value ?? r.Attribute(XName.Get("ReferenceOutputAssembly"))?.Value; 131project = Guid.Parse(projectElement.Value.Trim());
ConfigurationSchemaGenerator (1)
ConfigSchemaEmitter.cs (1)
575return element.Value;
dotnet-svcutil-lib (8)
Shared\MSBuildProj.cs (8)
193var targetFramework = targetFrameworkElements.Last().Value.Trim(); 214var targetFrameworks = targetFrameworksElements.Last().Value; 248msbuildProj.RuntimeIdentifier = runtimeIdentifierElements.Last().Value.Trim(); 306fullPath = path.Value; 310fullPath = hintPath.Value; 432return ele.Value; 479return itemNameElement.Value; 612if (element.Value != value)
dotnet-user-jwts (1)
src\Tools\Shared\SecretsHelpers\UserSecretsCreator.cs (1)
40return existingUserSecretsId.Value;
dotnet-user-secrets (1)
src\Tools\Shared\SecretsHelpers\UserSecretsCreator.cs (1)
40return existingUserSecretsId.Value;
GenerateDocumentationAndConfigFiles (6)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
422.Where(e => e.Name.LocalName == "SymbolKind" && e.Value == "Method").ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (5)
310=> (Accessibility)Enum.Parse(typeof(Accessibility), accessibilityElement.Value); 421var symbolKind = (SymbolKind)Enum.Parse(typeof(SymbolKind), symbolKindElement.Value); 433=> new((TypeKind)Enum.Parse(typeof(TypeKind), typeKindElement.Value)); 436=> new((MethodKind)Enum.Parse(typeof(MethodKind), methodKindElement.Value)); 536=> new((ModifierKindEnum)Enum.Parse(typeof(ModifierKindEnum), modifierElement.Value));
IIS.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\FrebTests.cs (2)
159frebEvents.Add(new FrebLogItem(eventElementWithOpCode.Value, requestStatus?.Value));
IISExpress.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\FrebTests.cs (2)
159frebEvents.Add(new FrebLogItem(eventElementWithOpCode.Value, requestStatus?.Value));
Metrics (6)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
422.Where(e => e.Name.LocalName == "SymbolKind" && e.Value == "Method").ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (5)
310=> (Accessibility)Enum.Parse(typeof(Accessibility), accessibilityElement.Value); 421var symbolKind = (SymbolKind)Enum.Parse(typeof(SymbolKind), symbolKindElement.Value); 433=> new((TypeKind)Enum.Parse(typeof(TypeKind), typeKindElement.Value)); 436=> new((MethodKind)Enum.Parse(typeof(MethodKind), methodKindElement.Value)); 536=> new((ModifierKindEnum)Enum.Parse(typeof(ModifierKindEnum), modifierElement.Value));
Metrics.Legacy (6)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
422.Where(e => e.Name.LocalName == "SymbolKind" && e.Value == "Method").ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (5)
310=> (Accessibility)Enum.Parse(typeof(Accessibility), accessibilityElement.Value); 421var symbolKind = (SymbolKind)Enum.Parse(typeof(SymbolKind), symbolKindElement.Value); 433=> new((TypeKind)Enum.Parse(typeof(TypeKind), typeKindElement.Value)); 436=> new((MethodKind)Enum.Parse(typeof(MethodKind), methodKindElement.Value)); 536=> new((ModifierKindEnum)Enum.Parse(typeof(ModifierKindEnum), modifierElement.Value));
Microsoft.Arcade.Common (2)
NupkgInfoFactory.cs (2)
55return new PackageIdentity(GetSingleElement(metadataElement, "id").Value, GetSingleElement(metadataElement, "version").Value);
Microsoft.AspNetCore.Authentication.Test (20)
CertificateTests.cs (20)
488Assert.Equal(Certificates.SelfSignedValidWithNoEku.Issuer, actual.First().Value); 492Assert.Equal(Certificates.SelfSignedValidWithNoEku.Thumbprint, actual.First().Value); 501Assert.Equal(Certificates.SelfSignedValidWithNoEku.SubjectName.Name, actual.First().Value); 511Assert.Equal(Certificates.SelfSignedValidWithNoEku.SerialNumber, actual.First().Value); 521Assert.Equal(Certificates.SelfSignedValidWithNoEku.GetNameInfo(X509NameType.DnsName, false), actual.First().Value); 531Assert.Equal(Certificates.SelfSignedValidWithNoEku.GetNameInfo(X509NameType.EmailName, false), actual.First().Value); 541Assert.Equal(Certificates.SelfSignedValidWithNoEku.GetNameInfo(X509NameType.SimpleName, false), actual.First().Value); 551Assert.Equal(Certificates.SelfSignedValidWithNoEku.GetNameInfo(X509NameType.UpnName, false), actual.First().Value); 561Assert.Equal(Certificates.SelfSignedValidWithNoEku.GetNameInfo(X509NameType.UrlName, false), actual.First().Value); 617Assert.Equal(Expected, name.First().Value); 620Assert.Equal("1", count.First().Value); 636Assert.Equal(Expected, name.First().Value); 640Assert.Equal(expected, count.First().Value); 687Assert.Equal(Expected, actual.First().Value); 744Assert.Equal(Expected, name.First().Value); 747Assert.Equal("1", count.First().Value); 763Assert.Equal(Expected, name.First().Value); 767Assert.Equal(expected, count.First().Value); 785Assert.Equal(Expected, name.First().Value); 790Assert.Equal(laterExpected, count.First().Value);
Microsoft.AspNetCore.DataProtection.Tests (1)
XmlEncryption\EncryptedXmlDecryptorTests.cs (1)
85Assert.Equal("Lorem ipsum", decrypted.Value);
Microsoft.AspNetCore.Mvc.FunctionalTests (17)
AsyncEnumerableTestBase.cs (1)
100return name.Value;
XmlDataContractSerializerFormattersWrappingTest.cs (8)
238Assert.Equal("404", root.Element(root.Name.Namespace.GetName("status"))?.Value); 239Assert.Equal("Not Found", root.Element(root.Name.Namespace.GetName("title"))?.Value); 240Assert.Equal("https://tools.ietf.org/html/rfc9110#section-15.5.5", root.Element(root.Name.Namespace.GetName("type"))?.Value); 242Assert.NotNull(root.Element(root.Name.Namespace.GetName("traceId"))?.Value); 281Assert.Equal("400", root.Element(root.Name.Namespace.GetName("status"))?.Value); 282Assert.Equal("One or more validation errors occurred.", root.Element(root.Name.Namespace.GetName("title"))?.Value); 285Assert.Equal("The State field is required.", mvcErrors.Element(root.Name.Namespace.GetName("State"))?.Value); 287Assert.NotNull(root.Element(root.Name.Namespace.GetName("traceId"))?.Value);
XmlSerializerFormattersWrappingTest.cs (8)
221Assert.Equal("404", root.Element(root.Name.Namespace.GetName("status"))?.Value); 222Assert.Equal("Not Found", root.Element(root.Name.Namespace.GetName("title"))?.Value); 223Assert.Equal("https://tools.ietf.org/html/rfc9110#section-15.5.5", root.Element(root.Name.Namespace.GetName("type"))?.Value); 225Assert.NotNull(root.Element(root.Name.Namespace.GetName("traceId"))?.Value); 263Assert.Equal("400", root.Element(root.Name.Namespace.GetName("status"))?.Value); 264Assert.Equal("One or more validation errors occurred.", root.Element(root.Name.Namespace.GetName("title"))?.Value); 267Assert.Equal("The State field is required.", mvcErrors.Element(root.Name.Namespace.GetName("State"))?.Value); 269Assert.NotNull(root.Element(root.Name.Namespace.GetName("traceId"))?.Value);
Microsoft.AspNetCore.OpenApi.SourceGenerators (3)
XmlComments\XmlComment.cs (3)
90.Select(item => listPrefix + item?.Value?.TrimEachLine() ?? string.Empty) 107var codeText = element.Value.TrimEachLine(); 154var paraText = element.Value.TrimEachLine();
Microsoft.CodeAnalysis.Analyzers (6)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
422.Where(e => e.Name.LocalName == "SymbolKind" && e.Value == "Method").ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (5)
310=> (Accessibility)Enum.Parse(typeof(Accessibility), accessibilityElement.Value); 421var symbolKind = (SymbolKind)Enum.Parse(typeof(SymbolKind), symbolKindElement.Value); 433=> new((TypeKind)Enum.Parse(typeof(TypeKind), typeKindElement.Value)); 436=> new((MethodKind)Enum.Parse(typeof(MethodKind), methodKindElement.Value)); 536=> new((ModifierKindEnum)Enum.Parse(typeof(ModifierKindEnum), modifierElement.Value));
Microsoft.CodeAnalysis.AnalyzerUtilities (6)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
422.Where(e => e.Name.LocalName == "SymbolKind" && e.Value == "Method").ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (5)
310=> (Accessibility)Enum.Parse(typeof(Accessibility), accessibilityElement.Value); 421var symbolKind = (SymbolKind)Enum.Parse(typeof(SymbolKind), symbolKindElement.Value); 433=> new((TypeKind)Enum.Parse(typeof(TypeKind), typeKindElement.Value)); 436=> new((MethodKind)Enum.Parse(typeof(MethodKind), methodKindElement.Value)); 536=> new((ModifierKindEnum)Enum.Parse(typeof(ModifierKindEnum), modifierElement.Value));
Microsoft.CodeAnalysis.BannedApiAnalyzers (6)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
422.Where(e => e.Name.LocalName == "SymbolKind" && e.Value == "Method").ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (5)
310=> (Accessibility)Enum.Parse(typeof(Accessibility), accessibilityElement.Value); 421var symbolKind = (SymbolKind)Enum.Parse(typeof(SymbolKind), symbolKindElement.Value); 433=> new((TypeKind)Enum.Parse(typeof(TypeKind), typeKindElement.Value)); 436=> new((MethodKind)Enum.Parse(typeof(MethodKind), methodKindElement.Value)); 536=> new((ModifierKindEnum)Enum.Parse(typeof(ModifierKindEnum), modifierElement.Value));
Microsoft.CodeAnalysis.CodeStyle (6)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
422.Where(e => e.Name.LocalName == "SymbolKind" && e.Value == "Method").ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (5)
310=> (Accessibility)Enum.Parse(typeof(Accessibility), accessibilityElement.Value); 421var symbolKind = (SymbolKind)Enum.Parse(typeof(SymbolKind), symbolKindElement.Value); 433=> new((TypeKind)Enum.Parse(typeof(TypeKind), typeKindElement.Value)); 436=> new((MethodKind)Enum.Parse(typeof(MethodKind), methodKindElement.Value)); 536=> new((ModifierKindEnum)Enum.Parse(typeof(ModifierKindEnum), modifierElement.Value));
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (108)
Diagnostics\AddImport\AddImportCrossLanguageTests.vb (8)
68</text>.Value.Trim() 108</text>.Value.Trim() 165</text>.Value.Trim() 218</text>.Value.Trim() 263</text>.Value.Trim() 351</text>.Value.Trim() 399</text>.Value.Trim() 444</text>.Value.Trim()
Diagnostics\GenerateEvent\GenerateEventCrossLanguageTests.vb (5)
46</text>.Value.Trim() 79}</text>.Value.Trim() 114</text>.Value.Trim() 152</Text>.Value.Trim()}, 158</Text>.Value.Trim()}
Diagnostics\GenerateFromUsage\GenerateConstructorCrossLanguageTests.vb (1)
55</text>.Value.Trim()
Diagnostics\GenerateFromUsage\GenerateMethodCrossLanguageTests.vb (27)
59</text>.Value.Trim() 96</text>.Value.Trim() 138</text>.Value.Trim() 172</text>.Value.Trim() 214</text>.Value.Trim() 250</text>.Value.Trim() 289</text>.Value.Trim() 330</text>.Value.Trim() 371</text>.Value.Trim() 416</text>.Value.Trim() 461</text>.Value.Trim() 515</text>.Value.Trim() 584</text>.Value.Trim() 653</text>.Value.Trim() 732</text>.Value.Trim() 821</text>.Value.Trim() 905</text>.Value.Trim() 996</text>.Value.Trim() 1068</text>.Value.Trim() 1118</Text>.Value.Trim()}, 1126</Text>.Value.Trim()} 1172</Text>.Value.Trim()}} 1216</Text>.Value.Trim()}} 1257</Text>.Value.Trim()}, 1264</Text>.Value.Trim()} 1304</Text>.Value.Trim()}} 1338</Text>.Value.Trim()}}
Diagnostics\GenerateFromUsage\GenerateVariableCrossLanguageTests.vb (1)
62</text>.Value.Trim()
Diagnostics\ImplementInterface\ImplementInterfaceCrossLanguageTests.vb (9)
59</text>.Value.Trim() 100</text>.Value.Trim() 146</text>.Value.Trim() 184</text>.Value.Trim() 222</text>.Value.Trim() 266</text>.Value.Trim() 302</text>.Value.Trim() 340</text>.Value.Trim() 380</text>.Value.Trim()
Diagnostics\UseAutoProperty\UseAutoPropertyTests.vb (8)
52</text>.Value.Trim()}, 59</text>.Value.Trim()} 91</text>.Value.Trim()}, 97</text>.Value.Trim()} 184</text>.Value.Trim()}, 194</text>.Value.Trim()} 234</text>.Value.Trim()}, 242</text>.Value.Trim()}
IntelliSense\CSharpCompletionCommandHandlerTests.vb (1)
3922}]]></Document>.Value.Replace(vbLf, vbCrLf)
IntelliSense\VisualBasicCompletionCommandHandlerTests.vb (1)
1776End Module</Document>.Value.Replace(vbLf, vbCrLf)
Rename\RenameEngineTests.CSharpConflicts.vb (25)
328Dim outputResult = <code>Outer((string y) => Inner(x => {</code>.Value + vbCrLf + 329<code> var z = 5;</code>.Value + vbCrLf + 330<code>z.L();</code>.Value + vbCrLf + 331<code>x.Ex();</code>.Value + vbCrLf + 332<code> }, y), 0);</code>.Value 378Dim outputResult = <code>Outer((string y) => Inner((x) => {</code>.Value + vbCrLf + 379<code> var z = 5;</code>.Value + vbCrLf + 380<code>z.L();</code>.Value + vbCrLf + 381<code>x.Ex();</code>.Value + vbCrLf + 382<code> }, y), 0);</code>.Value 428Dim outputResult = <code>Outer((y) => Inner((string x) => {</code>.Value + vbCrLf + 429<code> var z = 5;</code>.Value + vbCrLf + 430<code>z.Ex();</code>.Value + vbCrLf + 431<code>x.Ex();</code>.Value + vbCrLf + 432<code> }, y), 0);</code>.Value 478Dim outputResult = <code>Outer(y => Inner((string x) => {</code>.Value + vbCrLf + 479<code> var z = 5;</code>.Value + vbCrLf + 480<code>z.Ex();</code>.Value + vbCrLf + 481<code>x.Ex();</code>.Value + vbCrLf + 482<code> }, y), 0);</code>.Value 528Dim outputResult = <code>Outer(y => Inner((string x) => {</code>.Value + vbCrLf + 529<code> var z = 5;</code>.Value + vbCrLf + 530<code> z.Ex();</code>.Value + vbCrLf + 531<code> x.Ex();</code>.Value + vbCrLf + 532<code> }, y), 0);</code>.Value
Rename\RenameEngineTests.VisualBasicConflicts.vb (22)
251Dim outputResult = <Code>Outer(Sub(y As String)</Code>.Value + vbCrLf + 252<Code> Inner(Sub(x)</Code>.Value + vbCrLf + 253<Code> Console.WriteLine(x)</Code>.Value + vbCrLf + 254<Code> x.Ex()</Code>.Value + vbCrLf + 255<Code> End Sub, y)</Code>.Value + vbCrLf + 256<Code> End Sub, 0)</Code>.Value 314Dim outputResult = <Code>Outer(Sub(y As String)</Code>.Value + vbCrLf + 315<Code> Inner(Sub(x)</Code>.Value + vbCrLf + 316<Code> Console.WriteLine(x)</Code>.Value + vbCrLf + 317<Code> Dim z = 5</Code>.Value + vbCrLf + 318<Code> z.goo()</Code>.Value + vbCrLf + 319<Code> x.Ex()</Code>.Value + vbCrLf + 320<Code> End Sub, y)</Code>.Value + vbCrLf + 321<Code> End Sub, 0)</Code>.Value 380Dim outputResult = <Code>Outer(Sub(y)</Code>.Value + vbCrLf + 381<Code> Inner(Sub(x As String)</Code>.Value + vbCrLf + 382<Code> Console.WriteLine(x)</Code>.Value + vbCrLf + 383<Code> Dim z = 5</Code>.Value + vbCrLf + 384<Code> z.Ex()</Code>.Value + vbCrLf + 385<Code> x.Ex()</Code>.Value + vbCrLf + 386<Code> End Sub, y)</Code>.Value + vbCrLf + 387<Code> End Sub, 0)</Code>.Value
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
Handler\InlineCompletions\XmlSnippetParser.CodeSnippet.cs (4)
48_snippetTypes = [.. snippetTypes.Elements().Select(e => e.Value.Trim())]; 104return subElement == null ? string.Empty : subElement.Value.Trim(); 143_code = Regex.Replace(code.Value, "(?<!\r)\n", "\r\n"); 162SnippetFunctionService.TryGetSnippetFunctionInfo(functionElement?.Value, out var functionName, out var functionParam);
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (6)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
422.Where(e => e.Name.LocalName == "SymbolKind" && e.Value == "Method").ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (5)
310=> (Accessibility)Enum.Parse(typeof(Accessibility), accessibilityElement.Value); 421var symbolKind = (SymbolKind)Enum.Parse(typeof(SymbolKind), symbolKindElement.Value); 433=> new((TypeKind)Enum.Parse(typeof(TypeKind), typeKindElement.Value)); 436=> new((MethodKind)Enum.Parse(typeof(MethodKind), methodKindElement.Value)); 536=> new((ModifierKindEnum)Enum.Parse(typeof(ModifierKindEnum), modifierElement.Value));
Microsoft.CodeAnalysis.PublicApiAnalyzers (6)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
422.Where(e => e.Name.LocalName == "SymbolKind" && e.Value == "Method").ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (5)
310=> (Accessibility)Enum.Parse(typeof(Accessibility), accessibilityElement.Value); 421var symbolKind = (SymbolKind)Enum.Parse(typeof(SymbolKind), symbolKindElement.Value); 433=> new((TypeKind)Enum.Parse(typeof(TypeKind), typeKindElement.Value)); 436=> new((MethodKind)Enum.Parse(typeof(MethodKind), methodKindElement.Value)); 536=> new((ModifierKindEnum)Enum.Parse(typeof(ModifierKindEnum), modifierElement.Value));
Microsoft.CodeAnalysis.ResxSourceGenerator (7)
AbstractResxGenerator.cs (1)
410var value = node.Elements("value").FirstOrDefault()?.Value.Trim();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
422.Where(e => e.Name.LocalName == "SymbolKind" && e.Value == "Method").ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (5)
310=> (Accessibility)Enum.Parse(typeof(Accessibility), accessibilityElement.Value); 421var symbolKind = (SymbolKind)Enum.Parse(typeof(SymbolKind), symbolKindElement.Value); 433=> new((TypeKind)Enum.Parse(typeof(TypeKind), typeKindElement.Value)); 436=> new((MethodKind)Enum.Parse(typeof(MethodKind), methodKindElement.Value)); 536=> new((ModifierKindEnum)Enum.Parse(typeof(ModifierKindEnum), modifierElement.Value));
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.UnitTests (47)
src\Analyzers\VisualBasic\Tests\GenerateConstructor\GenerateConstructorTests.vb (5)
1209</Text>.Value) 1256End Class</Text>.Value.Replace(vbLf, vbCrLf), 1267End Class</Text>.Value.Replace(vbLf, vbCrLf)) 1411End Class</Text>.Value.Replace(vbLf, vbCrLf), 1426End Class</Text>.Value.Replace(vbLf, vbCrLf))
src\Analyzers\VisualBasic\Tests\GenerateEnumMember\GenerateEnumMemberTests.vb (2)
510End Enum</Text>.Value.Replace(vbLf, vbCrLf) 522End Enum</Text>.Value.Replace(vbLf, vbCrLf)
src\Analyzers\VisualBasic\Tests\GenerateMethod\GenerateConversionTests.vb (16)
30</text>.Value.Replace(vbLf, vbCrLf), 44</text>.Value.Replace(vbLf, vbCrLf)) 58</text>.Value.Replace(vbLf, vbCrLf), 72</text>.Value.Replace(vbLf, vbCrLf)) 90</text>.Value.Replace(vbLf, vbCrLf), 106</text>.Value.Replace(vbLf, vbCrLf)) 129</text>.Value.Replace(vbLf, vbCrLf), 151</text>.Value.Replace(vbLf, vbCrLf)) 165</text>.Value.Replace(vbLf, vbCrLf), 179</text>.Value.Replace(vbLf, vbCrLf)) 193</text>.Value.Replace(vbLf, vbCrLf), 207</text>.Value.Replace(vbLf, vbCrLf)) 225</text>.Value.Replace(vbLf, vbCrLf), 241</text>.Value.Replace(vbLf, vbCrLf)) 264</text>.Value.Replace(vbLf, vbCrLf), 286</text>.Value.Replace(vbLf, vbCrLf))
src\Analyzers\VisualBasic\Tests\ImplementAbstractClass\ImplementAbstractClassTests.vb (2)
515</Text>.Value.Replace(vbLf, vbCrLf), 530</Text>.Value.Replace(vbLf, vbCrLf))
src\Analyzers\VisualBasic\Tests\ImplementInterface\ImplementInterfaceTests.vb (21)
1496End Class</Text>.Value.Replace(vbLf, vbCrLf), 1507End Class</Text>.Value.Replace(vbLf, vbCrLf)) 2009End Class</Text>.Value.Replace(vbLf, vbCrLf), 2075End Class</Text>.Value.Replace(vbLf, vbCrLf)) 2098End Class</Text>.Value.Replace(vbLf, vbCrLf), 2164End Class</Text>.Value.Replace(vbLf, vbCrLf)) 2190End Class]]></Text>.Value.Replace(vbLf, vbCrLf), 2219End Class]]></Text>.Value.Replace(vbLf, vbCrLf)) 2247End Class]]></Text>.Value.Replace(vbLf, vbCrLf), 2278End Class]]></Text>.Value.Replace(vbLf, vbCrLf)) 2745</Text>.Value.Replace(vbLf, vbCrLf), 2784</Text>.Value.Replace(vbLf, vbCrLf)) 3599</Text>.Value.Replace(vbLf, vbCrLf), 3613</Text>.Value.Replace(vbLf, vbCrLf)) 3688</Text>.Value.Replace(vbLf, vbCrLf), 3705</Text>.Value.Replace(vbLf, vbCrLf)) 3716</Text>.Value.Replace(vbLf, vbCrLf), 3737</Text>.Value.Replace(vbLf, vbCrLf), 3760</Text>.Value.Replace(vbLf, vbCrLf), 3771</Text>.Value.Replace(vbLf, vbCrLf)) 3805</Text>.Value.Replace(vbLf, vbCrLf),
src\Analyzers\VisualBasic\Tests\RemoveUnnecessaryCast\RemoveUnnecessaryCastTests.vb (1)
3057</Code>.Value)
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (86)
CommandLineBreakingChanges.vb (9)
40</text>.Value.Trim().Replace(vbLf, vbCrLf), tempLog.ReadAllText().Trim().Replace(src, "SRC.VB")) 58</text>.Value).Path 76</text>.Value.Trim().Replace(vbLf, vbCrLf), tempOut.ReadAllText().Trim().Replace(src, "SRC.VB")) 90</text>.Value).Path 108</text>.Value.Trim().Replace(vbLf, vbCrLf), tempOut.ReadAllText().Trim().Replace(src, "SRC.VB")) 122</text>.Value).Path 140</text>.Value.Trim().Replace(vbLf, vbCrLf), tempOut.ReadAllText().Trim().Replace(src, "SRC.VB")) 157</text>.Value).Path 175</text>.Value.Trim().Replace(vbLf, vbCrLf), tempOut.ReadAllText().Trim().Replace(src, "SRC.VB"))
CommandLineTests.vb (71)
287</text>.Value).Path 333</text>.Value).Path 471</text>.Value).Path 512</text>.Value).Path 530</text>.Value).Path 548</text>.Value).Path 561</text>.Value.Replace(vbLf, vbCrLf).Trim, 589</text>.Value).Path 602</text>.Value.Replace(vbLf, vbCrLf).Trim, 622</text>.Value.Trim().Replace(vbLf, vbCrLf), tempOut.ReadAllText().Trim().Replace(src, "SRC.VB")) 641</text>.Value.Trim().Replace(vbLf, vbCrLf), tempOut.ReadAllText().Trim().Replace(src, "SRC.VB")) 759</text>.Value).Path 781</text>.Value).Path 930/imports:System.Text</text>.Value).Path 3631Dim src = dir.CreateFile("a.vb").WriteAllText(source.Value) 4089</text>.Value.Replace(vbLf, vbCrLf)) 4117</text>.Value.Replace(vbLf, vbCrLf)) 4169</text>.Value.Replace(vbLf, vbCrLf)) 4207</text>.Value.Replace(vbLf, vbCrLf)) 4248</text>.Value.Replace(vbLf, vbCrLf)) 4267</text>.Value.Replace(vbLf, vbCrLf)) 4286</text>.Value.Replace(vbLf, vbCrLf)) 4305</text>.Value.Replace(vbLf, vbCrLf)) 4324</text>.Value.Replace(vbLf, vbCrLf)) 4343</text>.Value.Replace(vbLf, vbCrLf)) 5098</text>.Value.Replace(vbLf, vbCrLf)) 5165</text>.Value.Replace(vbLf, vbCrLf)) 5208</text>.Value.Replace(vbLf, vbCrLf)) 5276</text>.Value.Replace(vbLf, vbCrLf)) 5321</text>.Value.Replace(vbLf, vbCrLf)) 5943file.WriteAllText(source.Value) 5996file.WriteAllText(source.Value) 6083file.WriteAllText(source.Value) 6127file.WriteAllText(source.Value) 6175file.WriteAllText(source.Value) 6221file.WriteAllText(source.Value) 6263file.WriteAllText(source.Value) 6298file.WriteAllText(source.Value) 6330file.WriteAllText(source.Value) 6364file.WriteAllText(source.Value) 6398file.WriteAllText(source.Value) 6430file.WriteAllText(source.Value) 6466</result>.Value.Replace(vbLf, vbCrLf).Trim() 6480</text>.Value.Replace(vbLf, vbCrLf)) 6905</text>.Value).Path 6909</text>.Value).Path 6953</text>.Value).Path 6957</text>.Value).Path 6987</text>.Value).Path 6991</text>.Value).Path 7021</text>.Value).Path 7025</text>.Value).Path 7050</text>.Value).Path 7055</text>.Value).Path 7074</text>.Value).Path 7242</text>.Value).Path 7263</text>.Value).Path 7300</text>.Value).Path 7455</text>.Value).Path 7518</text>.Value.Replace(vbLf, vbCrLf)) 8656</text>.Value.Replace(vbLf, vbCrLf)) 8939</text>.Value).Path 8996</text>.Value).Path 9019</text>.Value).Path 9043</text>.Value).Path 9064</text>.Value).Path 9086</text>.Value).Path 9091</text>.Value).Path 9095</text>.Value).Path 9119</text>.Value.ToString(), 9553sourceFile.WriteAllText(source.Value)
SarifErrorLoggerTests.vb (4)
46</text>.Value 81</text>.Value 122</text>.Value 160</text>.Value
TouchedFileLoggingTests.vb (2)
30</text>.Value 106]]></text>.Value).Path
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (71)
Attributes\AttributeTests.vb (2)
1921{VisualBasicSyntaxTree.ParseText(library.Value)}, 1972{VisualBasicSyntaxTree.ParseText(library.Value)},
Attributes\AttributeTests_MarshalAs.vb (2)
379</text>.Value) 505</text>.Value)
Attributes\AttributeTests_WellKnownAttributes.vb (2)
1926</text>.Value) 3606{VisualBasicSyntaxTree.ParseText(library.Value)},
CodeGen\CodeGenScriptTests.vb (8)
25</text>.Value 44</text>.Value 69</text>.Value 89</text>.Value 110</text>.Value 127</text>.Value 157</text>.Value 171</text>.Value
CodeGen\CodeGenVBCore.vb (40)
123</expected>.Value) 149</expected>.Value) 185</expected>.Value 238</expected>.Value 305</expected>.Value) 359</expected>.Value) 416</expected>.Value) 474</expected>.Value) 517</expected>.Value) 568</expected>.Value) 627</expected>.Value) 687</expected>.Value) 738</expected>.Value) 801</expected>.Value) 865</expected>.Value) 929</expected>.Value) 995</expected>.Value) 1049</expected>.Value) 1101</expected>.Value) 1156</expected>.Value) 1212</expected>.Value) 1265</expected>.Value) 1320</expected>.Value) 1372</expected>.Value) 1436</expected>.Value) 1490</expected>.Value) 1545</expected>.Value) 1598</expected>.Value) 1653</expected>.Value) 1706</expected>.Value) 1740</expected>.Value) 1798</expected>.Value) 1856</expected>.Value) 1939</expected>.Value) 2014</expected>.Value) 2049</output>.Value.Replace(vbLf, Environment.NewLine), 2105</expected>.Value) 2144</expected>.Value) 2208</expected>.Value) 2492</expected>.Value)
Emit\EmitCustomModifiers.vb (1)
34</text>.Value
Emit\EmitMetadata.vb (7)
93</text>.Value 243</text>.Value 268</text>.Value 303</text>.Value 376</text>.Value 453</text>.Value 562</text>.Value
Emit\EntryPointTests.vb (9)
138{VisualBasicSyntaxTree.ParseText(vbx.Value, options:=TestOptions.Script), 139VisualBasicSyntaxTree.ParseText(vb.Value, options:=VisualBasicParseOptions.Default)}, options:=TestOptions.ReleaseExe) 553{VisualBasicSyntaxTree.ParseText(vbx.Value, options:=TestOptions.Script)}, options:=TestOptions.ReleaseExe, references:=LatestVbReferences) 572{VisualBasicSyntaxTree.ParseText(vbx.Value, options:=TestOptions.Script), 573VisualBasicSyntaxTree.ParseText(vb.Value, options:=VisualBasicParseOptions.Default)}, options:=TestOptions.ReleaseExe, references:=LatestVbReferences) 599{VisualBasicSyntaxTree.ParseText(vbx.Value, options:=TestOptions.Script), 600VisualBasicSyntaxTree.ParseText(vb.Value, options:=VisualBasicParseOptions.Default)}, options:=TestOptions.ReleaseExe, references:=LatestVbReferences) 752{VisualBasicSyntaxTree.ParseText(vbx.Value, options:=TestOptions.Script), 753VisualBasicSyntaxTree.ParseText(vb.Value, options:=TestOptions.Regular)}, options:=TestOptions.ReleaseExe.WithMainTypeName("C"))
Microsoft.CodeAnalysis.VisualBasic.Features.UnitTests (177)
EditAndContinue\StatementEditingTests.vb (10)
5389</text>.Value 5393</text>.Value 5407</text>.Value 5411</text>.Value 5424</text>.Value 5429</text>.Value 5442</text>.Value 5446</text>.Value 5515</text>.Value 5519</text>.Value
EditAndContinue\StatementMatchingTests.vb (22)
24</text>.Value 36</text>.Value 149</text>.Value 153</text>.Value 186</text>.Value 192</text>.Value 235</text>.Value 239</text>.Value 269</text>.Value 273</text>.Value 298</text>.Value 301</text>.Value 323</text>.Value 327</text>.Value 361</text>.Value 367</text>.Value 928</text>.Value 938</text>.Value 1002</text>.Value 1009</text>.Value 1054</text>.Value 1070</text>.Value
EditAndContinue\TopLevelEditingTests.vb (2)
2802</text>.Value 2809End Class]@11</text>.Value,
ExtractMethod\ExtractMethodTests.vb (8)
139</Text>.Value.Replace(vbLf, vbCrLf), 153</Text>.Value.Replace(vbLf, vbCrLf)) 308</Text>.Value.Replace(vbLf, vbCrLf), 330</Text>.Value.Replace(vbLf, vbCrLf)) 352</Text>.Value.Replace(vbLf, vbCrLf), 377</Text>.Value.Replace(vbLf, vbCrLf)) 402</Text>.Value.Replace(vbLf, vbCrLf), 429</Text>.Value.Replace(vbLf, vbCrLf))
FullyQualify\FullyQualifyTests.vb (6)
783End Module</Text>.Value.Replace(vbLf, vbCrLf), 788End Module</Text>.Value.Replace(vbLf, vbCrLf), testHost:=testHost) 801End Module</Text>.Value.Replace(vbLf, vbCrLf), 808End Module</Text>.Value.Replace(vbLf, vbCrLf), testHost:=testHost) 831End Namespace</Text>.Value.Replace(vbLf, vbCrLf), 849End Namespace</Text>.Value.Replace(vbLf, vbCrLf), testHost:=testHost)
GenerateMethod\GenerateMethodTests.vb (65)
1053End Class</text>.Value.Replace(vbLf, vbCrLf), 1064End Class</text>.Value.Replace(vbLf, vbCrLf)) 1078End Class</text>.Value.Replace(vbLf, vbCrLf), 1091End Class</text>.Value.Replace(vbLf, vbCrLf)) 1442</Text>.Value.Replace(vbLf, vbCrLf), 1458</Text>.Value.Replace(vbLf, vbCrLf)) 1712</text>.Value) 1726</text>.Value.Replace(vbLf, vbCrLf), 1739</text>.Value.Replace(vbLf, vbCrLf)) 1757</text>.Value.Replace(vbLf, vbCrLf), 1775</text>.Value.Replace(vbLf, vbCrLf)) 1794</text>.Value.Replace(vbLf, vbCrLf), 1812</text>.Value.Replace(vbLf, vbCrLf)) 1834</text>.Value.Replace(vbLf, vbCrLf), 1855</text>.Value.Replace(vbLf, vbCrLf)) 2264</text>.Value.Replace(vbLf, vbCrLf), 2282</text>.Value.Replace(vbLf, vbCrLf)) 2302</text>.Value.Replace(vbLf, vbCrLf), 2320</text>.Value.Replace(vbLf, vbCrLf)) 2340</text>.Value.Replace(vbLf, vbCrLf), 2358</text>.Value.Replace(vbLf, vbCrLf)) 2375</text>.Value.Replace(vbLf, vbCrLf), 2392</text>.Value.Replace(vbLf, vbCrLf)) 2410</text>.Value.Replace(vbLf, vbCrLf), 2426</text>.Value.Replace(vbLf, vbCrLf)) 2448</text>.Value.Replace(vbLf, vbCrLf), 2468</text>.Value.Replace(vbLf, vbCrLf)) 2481</text>.Value.Replace(vbLf, vbCrLf), 2494</text>.Value.Replace(vbLf, vbCrLf)) 2508</text>.Value.Replace(vbLf, vbCrLf), 2523</text>.Value.Replace(vbLf, vbCrLf)) 2536</text>.Value.Replace(vbLf, vbCrLf), 2547</text>.Value.Replace(vbLf, vbCrLf)) 2573</text>.Value.Replace(vbLf, vbCrLf), 2599</text>.Value.Replace(vbLf, vbCrLf)) 2613</text>.Value.Replace(vbLf, vbCrLf), 2626</text>.Value.Replace(vbLf, vbCrLf)) 2642</text>.Value.Replace(vbLf, vbCrLf), 2658</text>.Value.Replace(vbLf, vbCrLf)) 2704</text>.Value.Replace(vbLf, vbCrLf), 2750</text>.Value.Replace(vbLf, vbCrLf)) 2785</text>.Value.Replace(vbLf, vbCrLf), 2820</text>.Value.Replace(vbLf, vbCrLf)) 2856</text>.Value.Replace(vbLf, vbCrLf), 2892</text>.Value.Replace(vbLf, vbCrLf)) 2926</text>.Value.Replace(vbLf, vbCrLf), 2960</text>.Value.Replace(vbLf, vbCrLf)) 2994</text>.Value.Replace(vbLf, vbCrLf), 3028</text>.Value.Replace(vbLf, vbCrLf)) 3062</text>.Value.Replace(vbLf, vbCrLf), 3096</text>.Value.Replace(vbLf, vbCrLf)) 3126</text>.Value.Replace(vbLf, vbCrLf), 3156</text>.Value.Replace(vbLf, vbCrLf)) 3171</text>.Value.Replace(vbLf, vbCrLf), 3184</text>.Value.Replace(vbLf, vbCrLf)) 3205</text>.Value.Replace(vbLf, vbCrLf), 3222</text>.Value.Replace(vbLf, vbCrLf)) 3234</text>.Value.Replace(vbLf, vbCrLf), 3247</text>.Value.Replace(vbLf, vbCrLf)) 3259</text>.Value.Replace(vbLf, vbCrLf), 3272</text>.Value.Replace(vbLf, vbCrLf)) 4048</text>.Value.Replace(vbLf, vbCrLf), 4062</text>.Value.Replace(vbLf, vbCrLf)) 4087</text>.Value.Replace(vbLf, vbCrLf), 4109</text>.Value.Replace(vbLf, vbCrLf))
GenerateVariable\GenerateVariableTests.vb (7)
1083</Text>.Value) 1333End Module</Text>.Value.Replace(vbLf, vbCrLf), 1341End Module</Text>.Value.Replace(vbLf, vbCrLf), 1349x = [|Goo|]</Text>.Value.Replace(vbLf, vbCrLf), 1352x = Goo</Text>.Value.Replace(vbLf, vbCrLf), 1359x = [|Goo|]</Text>.Value.Replace(vbLf, vbCrLf), 1362x = Goo</Text>.Value.Replace(vbLf, vbCrLf),
SimplifyTypeNames\SimplifyTypeNamesTests.vb (57)
89Await TestInRegularAndScriptAsync(source.Value, expected.Value) 1049</Text>.Value.Replace(vbLf, vbCrLf), 1115</Text>.Value.Replace(vbLf, vbCrLf), 1596Await TestInRegularAndScriptAsync(source.Value, expected.Value) 1615Await TestMissingInRegularAndScriptAsync(source.Value) 1661Await TestInRegularAndScriptAsync(source.Value.ReplaceLineEndings(endOfLine), expected.Value.ReplaceLineEndings(endOfLine)) 1710Await TestInRegularAndScriptAsync(source.Value, expected.Value) 1749Await TestInRegularAndScriptAsync(source.Value, expected.Value) 1794Await TestMissingInRegularAndScriptAsync(source.Value) 1821Await TestInRegularAndScriptAsync(source.Value, expected.Value) 1823Using workspace = TestWorkspace.CreateVisualBasic(source.Value, composition:=GetComposition().WithTestHostParts(TestHost.OutOfProcess)) 1869Await TestInRegularAndScriptAsync(source.Value, expected.Value) 1871Using workspace = TestWorkspace.CreateVisualBasic(source.Value, composition:=GetComposition().WithTestHostParts(TestHost.OutOfProcess)) 1874Assert.Equal(span.Start, expected.Value.ReplaceLineEndings(vbLf).IndexOf("new C", StringComparison.Ordinal) + 4) 1903Await TestInRegularAndScriptAsync(source.Value, expected.Value) 1905Using workspace = TestWorkspace.CreateVisualBasic(source.Value, composition:=GetComposition().WithTestHostParts(TestHost.OutOfProcess)) 1908Assert.Equal(span.Start, expected.Value.ReplaceLineEndings(vbLf).IndexOf("Console.WriteLine(""goo"")", StringComparison.Ordinal)) 1923Await TestMissingInRegularAndScriptAsync(source.Value) 1943Await TestMissingInRegularAndScriptAsync(source.Value) 1971Await TestInRegularAndScriptAsync(source.Value.ReplaceLineEndings(endOfLine), expected.Value.ReplaceLineEndings(endOfLine)) 1990Await TestMissingInRegularAndScriptAsync(source.Value) 2009Await TestMissingInRegularAndScriptAsync(source.Value) 2025Await TestMissingInRegularAndScriptAsync(source.Value) 2048Await TestInRegularAndScriptAsync(source.Value, expected.Value, options:=PreferIntrinsicPredefinedTypeInDeclaration()) 2071Await TestInRegularAndScriptAsync(source.Value, expected.Value, options:=PreferIntrinsicPredefinedTypeInDeclaration()) 2092Await TestInRegularAndScriptAsync(source.Value, expected.Value, options:=PreferIntrinsicTypeInMemberAccess()) 2111Await TestInRegularAndScriptAsync(source.Value, expected.Value, options:=PreferIntrinsicTypeInMemberAccess()) 2124Await TestMissingInRegularAndScriptAsync(source.Value, 2139Await TestMissingInRegularAndScriptAsync(source.Value, New TestParameters(options:=[Option](CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInDeclaration, False, NotificationOption2.Error))) 2153Await TestMissingInRegularAndScriptAsync(source.Value, New TestParameters(options:=[Option](CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInDeclaration, False, NotificationOption2.Error))) 2167Await TestMissingInRegularAndScriptAsync(source.Value, New TestParameters(options:=[Option](CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInDeclaration, False, NotificationOption2.Error))) 2192Await TestInRegularAndScriptAsync(source.Value, expected.Value, options:=PreferIntrinsicTypeInMemberAccess()) 2213Await TestInRegularAndScriptAsync(source.Value, expected.Value, options:=PreferIntrinsicTypeInMemberAccess()) 2233Await TestMissingInRegularAndScriptAsync(source.Value) 2246Await TestMissingInRegularAndScriptAsync(source.Value, New TestParameters(options:=[Option](CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInMemberAccess, False, NotificationOption2.Error))) 2260Await TestMissingInRegularAndScriptAsync(source.Value, New TestParameters(options:=[Option](CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInMemberAccess, False, NotificationOption2.Error))) 2272Await TestMissingInRegularAndScriptAsync(source.Value, New TestParameters(options:=[Option](CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInMemberAccess, False, NotificationOption2.Error))) 2291Await TestInRegularAndScriptAsync(source.Value, expected.Value, options:=PreferIntrinsicTypeInMemberAccess()) 2303Await TestMissingInRegularAndScriptAsync(source.Value, New TestParameters(options:=[Option](CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInMemberAccess, False, NotificationOption2.Error))) 2322Await TestInRegularAndScriptAsync(source.Value, expected.Value, options:=PreferIntrinsicTypeInMemberAccess())
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (67)
Binding\BindingCollectionInitializerTests.vb (6)
55VerifyOperationTreeAndDiagnosticsForTest(Of ObjectCreationExpressionSyntax)(source.Value, expectedOperationTree, expectedDiagnostics) 117VerifyOperationTreeAndDiagnosticsForTest(Of ObjectCreationExpressionSyntax)(source.Value, expectedOperationTree, expectedDiagnostics) 183VerifyOperationTreeAndDiagnosticsForTest(Of ObjectCreationExpressionSyntax)(source.Value, expectedOperationTree, expectedDiagnostics) 303VerifyOperationTreeAndDiagnosticsForTest(Of ObjectCreationExpressionSyntax)(source.Value, expectedOperationTree, expectedDiagnostics) 721VerifyOperationTreeAndDiagnosticsForTest(Of ObjectCreationExpressionSyntax)(source.Value, expectedOperationTree, expectedDiagnostics) 1688VerifyOperationTreeAndDiagnosticsForTest(Of ObjectCreationExpressionSyntax)(source.Value, expectedOperationTree, expectedDiagnostics)
Binding\BindingObjectInitializerTests.vb (4)
1071VerifyOperationTreeAndDiagnosticsForTest(Of ObjectCreationExpressionSyntax)(source.Value, expectedOperationTree, expectedDiagnostics) 1198VerifyOperationTreeAndDiagnosticsForTest(Of ObjectCreationExpressionSyntax)(source.Value, expectedOperationTree, expectedDiagnostics) 1339VerifyOperationTreeAndDiagnosticsForTest(Of ObjectCreationExpressionSyntax)(source.Value, expectedOperationTree, expectedDiagnostics) 1387VerifyOperationTreeAndDiagnosticsForTest(Of ObjectCreationExpressionSyntax)(source.Value, expectedOperationTree, expectedDiagnostics)
Binding\LookupTests.vb (1)
946</text>.Value)},
Compilation\CompilationAPITests.vb (2)
648</text>.Value 2064</text>.Value
Compilation\ReferenceManagerTests.vb (10)
35Dim refV1 = CreateCompilationWithMscorlib40({refSource.Value}, {v1}) 36Dim refV2 = CreateCompilationWithMscorlib40({refSource.Value}, {v2}) 50Dim testRefV1 = CreateCompilationWithMscorlib40({testRefSource.Value}, New MetadataReference() {New VisualBasicCompilationReference(refV1), v2}, options:=TestOptions.ReleaseDll) 53Dim testRefV2 = CreateCompilationWithMscorlib40({testRefSource.Value}, New MetadataReference() {New VisualBasicCompilationReference(refV2), v1}, options:=TestOptions.ReleaseDll) 81Dim refV1 = CreateCompilationWithMscorlib40({refSource.Value}, {v1}) 82Dim refV2 = CreateCompilationWithMscorlib40({refSource.Value}, {v2}) 91Dim testRefV1 = CreateCompilationWithMscorlib40({refSource.Value}, New MetadataReference() {New VisualBasicCompilationReference(refV1), v2}, options:=TestOptions.ReleaseDll) 94Dim testRefV2 = CreateCompilationWithMscorlib40({refSource.Value}, New MetadataReference() {New VisualBasicCompilationReference(refV2), v1}, options:=TestOptions.ReleaseDll) 678</text>.Value 693</text>.Value
Compilation\SemanticModelAPITests.vb (2)
224</code>.Value 4121Dim position = source.Value.IndexOf("Me", StringComparison.Ordinal)
Compilation\SymbolSearchTests.vb (1)
184</text>.Value
Diagnostics\GetDiagnosticsTests.vb (4)
137</file>.Value 147</file>.Value 189</file>.Value 202</file>.Value
FlowAnalysis\IterationJumpYieldStatementTests.vb (1)
1334</file>.Value)
Semantics\Conversions.vb (5)
31Dim dummyTree = VisualBasicSyntaxTree.ParseText(dummyCode.Value) 216Dim dummyTree = VisualBasicSyntaxTree.ParseText(dummyCode.Value) 1067Dim dummyTree = VisualBasicSyntaxTree.ParseText(dummyCode.Value) 4062</text>.Value 4148</text>.Value
Semantics\OverloadResolution.vb (3)
83Dim optionStrictOnTree = VisualBasicSyntaxTree.ParseText(optionStrictOn.Value) 84Dim optionStrictOffTree = VisualBasicSyntaxTree.ParseText(optionStrictOff.Value) 3051Dim optionStrictOffTree = VisualBasicSyntaxTree.ParseText(optionStrictOff.Value, options:=TestOptions.RegularLatest)
Semantics\PartialMethodsTest.vb (27)
24</text>.Value.Trim() 34</text>.Value.Trim() 104</text>.Value.Trim() 114</text>.Value.Trim() 184</text>.Value.Trim() 194</text>.Value.Trim() 272</text>.Value.Trim() 295</text>.Value.Trim() 305</text>.Value.Trim() 315</text>.Value.Trim() 411</text>.Value.Trim() 422</text>.Value.Trim() 464</text>.Value.Trim() 474</text>.Value.Trim() 521</text>.Value.Trim() 531</text>.Value.Trim() 578</text>.Value.Trim() 589</text>.Value.Trim() 911</text>.Value.Trim() 918</text>.Value.Trim() 954</text>.Value.Trim() 989</text>.Value.Trim() 1020</text>.Value.Trim() 1032</text>.Value.Trim() 1076</text>.Value.Trim() 1088</text>.Value.Trim() 1131</text>.Value.Trim()
Semantics\UnaryOperators.vb (1)
421End Module</text>.Value
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (68)
DocumentationComments\DocCommentTests.vb (1)
10666Dim xmlFile = Temp.CreateFile(extension:=".xml").WriteAllText(xmlText.Value.ToString)
SymbolDisplay\SymbolDisplayTests.vb (9)
3803text.Value.IndexOf("N1", StringComparison.Ordinal), { 3812text.Value.IndexOf("N2", StringComparison.Ordinal), { 3819text.Value.IndexOf("C1", StringComparison.Ordinal), 3824text.Value.IndexOf("C2", StringComparison.Ordinal), 3834text.Value.IndexOf("OUTER.INNER.GOO", StringComparison.Ordinal), 3846text.Value.IndexOf("Microsoft.VisualBasic.Collection", StringComparison.Ordinal), 4733</text>.Value 6044</text>.Value 6098</text>.Value
SymbolsTests\AnonymousTypes\AnonymousTypesEmittedSymbolsTests.vb (3)
273Dim expr1 = SyntaxFactory.ParseExpression(<text>New With { .aa = 1, .BB<%= i %> = "" }</text>.Value) 589Dim expr1 = SyntaxFactory.ParseExpression(<text>New With { .aa = 1, .BB = "", .CCC = new SSS() }</text>.Value) 594Dim expr2 = SyntaxFactory.ParseExpression(<text>New With { .aa = 1, Key .BB = "", .CCC = new SSS() }</text>.Value)
SymbolsTests\AnonymousTypes\AnonymousTypesSemanticsTests.vb (4)
96Dim text As String = compilationDef.Value.Replace(vbLf, vbCrLf) 218Dim text As String = compilationDef.Value.Replace(vbLf, vbCrLf) 291Dim text As String = compilationDef.Value.Replace(vbLf, vbCrLf) 360Dim text As String = compilationDef.Value.Replace(vbLf, vbCrLf)
SymbolsTests\CompilationCreationTests.vb (16)
127</text>.Value) 161</text>.Value) 231</text>.Value) 670</text>.Value}, {NetFramework.mscorlib}) 683</text>.Value}, {NetFramework.mscorlib, varC_MTTestLib1_V1.ToMetadataReference()}) 716</text>.Value}, {NetFramework.mscorlib}) 737</text>.Value}, {NetFramework.mscorlib, varC_MTTestLib2.ToMetadataReference(), varC_MTTestLib1_V2.ToMetadataReference()}) 790</text>.Value}, {NetFramework.mscorlib}) 822</text>.Value}, {NetFramework.mscorlib, varC_MTTestLib2.ToMetadataReference(), varC_MTTestLib1_V3.ToMetadataReference(), varC_MTTestLib3.ToMetadataReference()}) 1645{source1.Value}, 1653{source1.Value}, 1667{source4.Value}, 1675{source4.Value}, 1690{source7.Value}, 1764{source3.Value}, 1782{source5.Value},
SymbolsTests\CorLibrary\CorTypes.vb (3)
156Dim c1 = VisualBasicCompilation.Create("CorLib", syntaxTrees:={VisualBasicSyntaxTree.ParseText(source.Value)}) 226syntaxTrees:={VisualBasicSyntaxTree.ParseText(source1.Value)}, 240syntaxTrees:={VisualBasicSyntaxTree.ParseText(source2.Value)},
SymbolsTests\Metadata\PE\NoPia.vb (6)
266</text>.Value 274</text>.Value 766</text>.Value 813</text>.Value 827</text>.Value 843</text>.Value
SymbolsTests\Metadata\PE\NoPiaInstantiationOfGenericClassAndStruct.vb (22)
20</text>.Value 35</text>.Value 51</text>.Value 67</text>.Value 89</text>.Value 104</text>.Value 127</text>.Value 142</text>.Value 158</text>.Value 174</text>.Value 190</text>.Value 206</text>.Value 222</text>.Value 238</text>.Value 254</text>.Value 268end class</text>.Value 282end class</text>.Value 295end class</text>.Value 311</text>.Value 328</text>.Value 354</text>.Value 378</text>.Value
SymbolsTests\Metadata\WinMdEventTest.vb (2)
767CompileAndVerify(compilation, verify:=Verification.FailsILVerify).VerifyIL("abcdef.goo", expectedIL.Value()) 849CompileAndVerify(compilation, verify:=If(OSVersion.IsWin8, Verification.Passes, Verification.Skipped)).VerifyIL("abcdef.goo", expectedIL.Value())
SymbolsTests\MockSymbolTests.vb (1)
207}</expected>.Value.Replace(vbLf, Environment.NewLine).
SymbolsTests\Source\TypeTests.vb (1)
685</literal>.Value
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (83)
Parser\DeclarationTests.vb (3)
29</literal>.Value 42</literal>.Value 187</literal>.Value
Parser\ParseErrorTests.vb (3)
2908</text>.Value 2921</text>.Value 2934</text>.Value
Parser\ParseExpression.vb (2)
27</Module>.Value 2017Dim code = <String>*ERROR*</String>.Value
Parser\ParseStatements.vb (12)
1945</Q>.Value 1962</Q>.Value 1979</Q>.Value 1996</Q>.Value 2175</String>.Value 2214</String>.Value 2249</String>.Value 6047</source>.Value, 6055</source>.Value, FULLWIDTH_LESS_THAN_SIGN), 6067</source>.Value, 6080</source>.Value, 7847</source>.Value,
Parser\ParseXml.vb (3)
1136</root>.Value, 2354</source>.Value, FULLWIDTH_LESS_THAN_SIGN), 2651</source>.Value,
PreprocessorEETests.vb (1)
21</Module>.Value
Scanner\ScanConditionalTests.vb (4)
14</text>.Value 32boo</text>.Value 73#hi</text>.Value 113_</text>.Value
Scanner\ScannerTests.vb (13)
1277Dim Str = <text>"Q"c</text>.Value 1283Str = <text>""""c</text>.Value 1289Str = <text>""c</text>.Value 1295Str = <text>"""c</text>.Value 1302Str = <text>"QQ"c</text>.Value 1310""""c</text>.Value 1325Dim Str = <text>""</text>.Value 1331Str = <text>"Q"</text>.Value 1337Str = <text>""""</text>.Value 1343Str = <text>""""""""</text>.Value 1349Str = <text>"""" """"</text>.Value 1355"BB"</text>.Value 1893World!"</text>.Value
Syntax\ManualTests.vb (1)
222</code>.Value
Syntax\SyntaxNormalizerTests.vb (8)
115end Sub</code>.Value, _ 122</code>.Value) 140</code>.Value, 149</code>.Value) 296end module</code>.Value, _ 302</code>.Value) 728End Property</text>.Value.Replace(vbLf, vbCrLf) 737</text>.Value.Replace(vbLf, vbCrLf)
Syntax\SyntaxRewriterTests.vb (2)
512#End Region"</x>.Value 517#End Region"</x>.Value
TestSyntaxNodes.vb (31)
1374End If</x>.Value), MultiLineIfBlockSyntax) 1378</x>.Value) 1381</x>.Value) 1390End If</x>.Value, newBlock.ToFullString()) 1399End If</x>.Value, newBlock.ToFullString()) 1406End If</x>.Value, newBlock.ToFullString()) 1413End If</x>.Value, newBlock.ToFullString()) 1422End If</x>.Value), MultiLineIfBlockSyntax) 1426</x>.Value) 1429</x>.Value) 1439End If</x>.Value, newBlock.ToFullString()) 1449End If</x>.Value, newBlock.ToFullString()) 1459End If</x>.Value, newBlock.ToFullString()) 1469End If</x>.Value, newBlock.ToFullString()) 1494End Class</x>.Value) 1503End Class</x>.Value, cu1.ToFullString()) 1508End Class</x>.Value, cu2.ToFullString()) 1513End Class</x>.Value, cu3.ToFullString()) 1520End Class</x>.Value) 1538End Class</x>.Value) 1546End Class</x>.Value, cu1.ToFullString()) 1551End Class</x>.Value, cu2.ToFullString()) 1558End Class</x>.Value) 1688</x>.Value) 2254</code>.Value 2348End Class</code>.Value 3291Dim text = SourceText.Value 3365Dim text = SourceText.Value 3391Dim text = SourceText.Value 3415Dim text = SourceText.Value 3460Dim text = SourceText.Value
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (292)
CaseCorrection\CaseCorrectionTests.vb (2)
28Await AssertCaseCorrectAsync(code.Value, expected.Value)
Formatting\FormattingTests.vb (290)
31Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 46Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 63Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 82Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 105Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 124Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 139Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 154Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 179Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 212Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 233Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 254Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 275Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 296Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 325Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 364Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 399Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 420Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 441Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 462Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 477Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 500Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 523Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 548Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 569Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 598Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 617Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 664Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 677Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 694Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 711Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 730Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 759Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 792Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 831Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 989Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 1014Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 1033Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 1052Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 1075Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 1098Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 1121Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 1161Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 1176Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 1473Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 1492Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 1510Await AssertFormatLf2CrLfAsync(code.Value, code.Value) 1527Await AssertFormatLf2CrLfAsync(code.Value, code.Value) 1556Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 1573Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 1592Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 1611Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 1628Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 1645Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 1702Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 1723Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 1740Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 1757Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 1778Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 2118Await AssertFormatLf2CrLfAsync(code.Value, expected.Value, optionSet) 2179Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 2190Await AssertFormatLf2CrLfAsync(code.Value, code.Value) 2200Await AssertFormatLf2CrLfAsync(code.Value, code.Value) 2221Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 2244Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 2265Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 2275Await AssertFormatLf2CrLfAsync(code.Value, code.Value) 2302Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 2327Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 2440Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 2451Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 2492Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 2535Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 2567Await AssertFormatLf2CrLfAsync(code.Value, code.Value) 2584Await AssertFormatLf2CrLfAsync(code.Value, code.Value) 2598Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 2617Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 2644Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 2659Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 2688Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 2697Await AssertFormatLf2CrLfAsync(code.Value, code.Value) 2711Await AssertFormatLf2CrLfAsync(code.Value, code.Value) 2735Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 2770Await AssertFormatSpanAsync(code.Value.Replace(vbLf, vbCrLf), expected.Value.Replace(vbLf, vbCrLf)) 2802Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 2830Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 2864Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 2884Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 2903Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 3058Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 3089Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 3133Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 3152Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 3163Await AssertFormatLf2CrLfAsync(code.Value, code.Value) 3174Await AssertFormatLf2CrLfAsync(code.Value, code.Value) 3299Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 3320Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 3337Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 3356Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 3397Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 3405Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 3415Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 3447Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 3465Await AssertFormatLf2CrLfAsync(code.Value, code.Value) 3484Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 3503Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 3510Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 3534Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 3558Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 3572Await AssertFormatLf2CrLfAsync(code.Value, code.Value) 3587Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 3600Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 3617Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 3640Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 3667Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 3704Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 3748End Class</text>.Value.Replace(vbLf, vbCrLf) 3771End Class</text>.Value.Replace(vbLf, vbCrLf) 3809Await AssertFormatLf2CrLfAsync(text.Value, text.Value) 3822Await AssertFormatLf2CrLfAsync(code.Value, code.Value) 3847Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 3866Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 3891Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 3939Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 3991Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 4015Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 4025Dim actual = CreateMethod(code.Value) 4041Await AssertFormatLf2CrLfAsync(code.Value, code.Value) 4071Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 4101Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 4143Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 4183Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 4201End Class</text>.Value) 4238Await AssertFormatLf2CrLfAsync(text.Value, expected.Value) 4257Await AssertFormatLf2CrLfAsync(text.Value, expected.Value) 4297Await AssertFormatLf2CrLfAsync(text.Value, expected.Value) 4320Await AssertFormatLf2CrLfAsync(text.Value, expected.Value) 4431Await AssertFormatLf2CrLfAsync(text.Value, expected.Value) 4454Await AssertFormatLf2CrLfAsync(text.Value, expected.Value) 4479Await AssertFormatLf2CrLfAsync(text.Value, expected.Value) 4502Await AssertFormatLf2CrLfAsync(text.Value, expected.Value) 4527Await AssertFormatLf2CrLfAsync(text.Value, expected.Value) 4548Await AssertFormatLf2CrLfAsync(text.Value, expected.Value) 4585Await AssertFormatLf2CrLfAsync(text.Value, expected.Value) 4635Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 4652Await AssertFormatLf2CrLfAsync(code.Value, expected.Value) 4668Await AssertFormatLf2CrLfAsync(code.Value, code.Value)
Microsoft.CodeAnalysis.Workspaces (6)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
422.Where(e => e.Name.LocalName == "SymbolKind" && e.Value == "Method").ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (5)
310=> (Accessibility)Enum.Parse(typeof(Accessibility), accessibilityElement.Value); 421var symbolKind = (SymbolKind)Enum.Parse(typeof(SymbolKind), symbolKindElement.Value); 433=> new((TypeKind)Enum.Parse(typeof(TypeKind), typeKindElement.Value)); 436=> new((MethodKind)Enum.Parse(typeof(MethodKind), methodKindElement.Value)); 536=> new((ModifierKindEnum)Enum.Parse(typeof(ModifierKindEnum), modifierElement.Value));
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (8)
Extensions\XElementExtensions.cs (1)
12=> element.Value.Replace("\n", "\r\n");
Workspaces\TestWorkspace_XmlConsumption.cs (6)
192? sourceGeneratedDocumentElement.Value 425globalImports = [.. compilationOptionsElement.Elements(GlobalImportElementName).Select(x => GlobalImport.Parse(x.Value))]; 612? documentElement.Value 774compilation = compilation.AddSyntaxTrees(CreateSyntaxTree(parseOptions, documentElement.Value)); 808var content = File.ReadAllBytes(reference.Value); 809references.Add(MetadataReference.CreateFromImage(content, filePath: reference.Value));
Workspaces\TestWorkspace`1.cs (1)
659var toName = projectReference.Value;
Microsoft.DotNet.Arcade.Sdk (1)
src\GenerateResxSource.cs (1)
115string value = node.Elements("value").FirstOrDefault()?.Value.Trim();
Microsoft.DotNet.Build.Tasks.Installers (2)
src\CreateWixCommandPackageDropBase.cs (2)
269id = field.Value; 273oldPath = field.Value;
Microsoft.DotNet.MacOsPkg.Core (2)
Package.cs (2)
57List<XElement> componentPackages = xml.Elements("pkg-ref").Where(e => e.Value.Trim() != "").ToList(); 63string packageName = Path.Combine(dstPath, package.Value.Substring(1));
Microsoft.DotNet.NuGetRepack.Tasks (4)
src\NuGetVersionUpdater.cs (2)
155packageId = metadata.Element(XName.Get("id", nuspecXmlns))?.Value; 162string packageVersionStr = versionElement?.Value;
src\ReplacePackageParts.cs (2)
162packageId = metadata.Element(XName.Get("id", nuspecXmlns))?.Value; 170var versionStr = versionElement?.Value;
Microsoft.DotNet.SourceBuild.Tasks (3)
src\UsageReport\UsageData.cs (2)
46?.Value, 49.Select(x => x.Value)
src\UsageReport\WriteUsageReports.cs (1)
192?.Value;
Microsoft.DotNet.XliffTasks (15)
Model\ResxDocument.cs (3)
28string value = valueElement?.Value; 29string comment = node.Element("comment")?.Value ?? ""; 64string[] splitRelativePathAndSerializedType = valueNodeOfFileRef.Value.Split(';');
Model\VsctDocument.cs (1)
45source: child.Value,
Model\XamlRuleDocument.cs (4)
37source: descendentDisplayName.Value, 47source: descendentDescription.Value, 64source: descendentValue.Value, 97source: descendentValue.Value,
Model\XDocumentExtensions.cs (1)
30if (element.Value.Length == 0)
Model\XElementExtensions.cs (4)
20transUnitElement.Element(Target)?.Value 21?? transUnitElement.Element(Source).Value; 91transUnitElement.Element(Source).Value; 107transUnitElement.Element(Note)?.Value;
Tasks\TransformTemplates.cs (2)
86string templateItemFullPath = Path.Combine(templateDirectory, templateItem.Value); 87string templateItemDestinationPath = Path.Combine(localizedTemplateDirectory, templateItem.Value);
Microsoft.DotNet.XliffTasks.Tests (2)
XElementExtensionsTests.cs (2)
62Assert.Equal(expected: "new target text", actual: transUnitElement.Element(Target).Value); 75Assert.Equal(expected: "new target text", actual: transUnitElement.Element(Target).Value);
Microsoft.Extensions.FileProviders.Embedded (2)
Manifest\ManifestParser.cs (2)
144return element.Value; 149$"a text value. '{element.Value}'");
Microsoft.Maui.Resizetizer (7)
GeneratePackageAppxManifest.cs (4)
137 if (xelem == null || string.IsNullOrEmpty(xelem.Value) || xelem.Value == DefaultPlaceholder) 146 if (xelem == null || string.IsNullOrEmpty(xelem.Value) || xelem.Value == PngPlaceholder)
GenerateTizenManifest.cs (3)
142 var iconPlaceholderElements = iconElements.Where(d => d.Value == AppIconPlaceholder); 201 if (string.IsNullOrEmpty(element.Value) || element.Value == placeholder)
Microsoft.VisualStudio.LanguageServices (2)
Snippets\SnippetExpansionClient.cs (2)
316if (codeNode.Value.IndexOf(string.Format("{0}end{0}", delimiter), StringComparison.OrdinalIgnoreCase) != -1) 1096var assemblyName = assemblyElement?.Value.Trim();
Microsoft.VisualStudio.LanguageServices.CSharp (1)
Snippets\CSharpSnippetExpansionLanguageHelper.cs (1)
123var namespaceToImport = namespaceElement.Value.Trim();
Microsoft.VisualStudio.LanguageServices.UnitTests (281)
AbstractTextViewFilterTests.vb (1)
43]]></text>.Value.Replace(vbLf, vbCrLf), {doc})
CodeModel\CSharp\FileCodeModelTests.vb (3)
1010<Document><%= changedCode.Value %></Document> 1197Dim codeBeforeOperation = codeBeforeOperationXml.Value.NormalizeLineEndings().Trim() 1198Dim codeAfterOperation = codeAfterOperationXml.Value.NormalizeLineEndings().Trim()
CodeModel\VisualBasic\FileCodeModelTests.vb (2)
1006<Document FilePath="File1.vb"><%= changedCodeRemoveFunction.Value %></Document> 1007<Document FilePath="File2.vb"><%= changedCodeSubFunction.Value %></Document>
Help\HelpTests.vb (179)
28Await TestAsync(text.Value, "vb.Friend") 39Await TestAsync(text.Value, "vb.Protected") 50Await TestAsync(text.Value, "vb.ProtectedFriend") 61Await TestAsync(text.Value, "vb.ProtectedFriend") 72Await TestAsync(text.Value, "vb.PrivateProtected") 83Await TestAsync(text.Value, "vb.PrivateProtected") 94Await TestAsync(text.Value, "vb.PrivateProtected") 105Await TestAsync(text.Value, "vb.PrivateProtected") 116Await TestAsync(text.Value, "vb.PrivateProtected") 126Await TestAsync(text.Value, "vb.PrivateProtected") 140Await TestAsync(text.Value, "vb.AddHandler") 154Await TestAsync(text.Value, "vb.AddHandler") 166Await TestAsync(text.Value, "vb.Array") 178Await TestAsync(text.Value, "vb.Array") 190Await TestAsync(text.Value, "vb.=") 205Await TestAsync(text.Value, HelpKeywords.Attributes) 217Await TestAsync(text.Value, HelpKeywords.ModuleAttribute) 229Await TestAsync(text.Value, HelpKeywords.AssemblyAttribute) 241Await TestAsync(text.Value, "vb.+") 253Await TestAsync(text.Value, "vb.Call") 271Await TestAsync(text.Value, "vb.Select") 289Await TestAsync(text.Value, "vb.Select") 305Await TestAsync(text.Value, "vb.As") 321Await TestAsync(text.Value, "vb.When") 339Await TestAsync(text.Value, "vb.Try") 352Await TestAsync(text.Value, HelpKeywords.CollectionInitializer) 365Await TestAsync(text.Value, HelpKeywords.CollectionInitializer) 376Await TestAsync(text.Value, HelpKeywords.Constructor) 391Await TestAsync(text.Value, HelpKeywords.QueryDistinct) 405Await TestAsync(text.Value, "vb.Do") 419Await TestAsync(text.Value, "vb.Do") 433Await TestAsync(text.Value, "vb.Do") 449Await TestAsync(text.Value, "vb.Then") 467Await TestAsync(text.Value, "vb.ElseIf") 485Await TestAsync(text.Value, "vb.Else") 501Await TestAsync(text.Value, "vb.If") 515Await TestAsync(text.Value, HelpKeywords.LambdaFunction) 524Await TestAsync(text.Value, "vb.Class") 544Await TestAsync(text.Value, "vb.AddHandler") 556Await TestAsync(text.Value, "vb.End") 566Await TestAsync(text.Value, "vb.Enum") 579Await TestAsync(text.Value, "vb.Erase") 592Await TestAsync(text.Value, "vb.Erase") 604Await TestAsync(text.Value, "vb.Error") 614Await TestAsync(text.Value, "vb.Event") 628Await TestAsync(text.Value, "vb.Exit") 643Await TestAsync(text.Value, "vb.Exit") 653Await TestAsync(text.Value, "vb.Protected") 663Await TestAsync(text.Value, "vb.ReadOnly") 673Await TestAsync(text.Value, "vb.Dim") 684Await TestAsync(text.Value, "vb.In") 695Await TestAsync(text.Value, "vb.Each") 706Await TestAsync(text.Value, HelpKeywords.ForEach) 717Await TestAsync(text.Value, "vb.Step") 728Await TestAsync(text.Value, "vb.To") 739Await TestAsync(text.Value, "vb.For") 749Await TestAsync(text.Value, HelpKeywords.QueryFrom) 759Await TestAsync(text.Value, HelpKeywords.VarianceOut) 771Await TestAsync(text.Value, "vb.GetType") 784Await TestAsync(text.Value, "vb.GoTo") 797Await TestAsync(text.Value, HelpKeywords.Colon) 809Await TestAsync(text.Value, HelpKeywords.IfOperator) 823Await TestAsync(text.Value, "vb.Implements") 837Await TestAsync(text.Value, "vb.Implements") 849Await TestAsync(text.Value, HelpKeywords.AnonymousType) 861Await TestAsync(text.Value, HelpKeywords.AnonymousType) 873Await TestAsync(text.Value, HelpKeywords.AnonymousKey) 885Await TestAsync(text.Value, HelpKeywords.AnonymousType) 897Await TestAsync(text.Value, HelpKeywords.AnonymousType) 910Await TestAsync(text.Value, "vb.TypeOf") 923Await TestAsync(text.Value, "vb.TypeOf") 938Await TestAsync(text.Value, "vb.Async") 953Await TestAsync(text.Value, HelpKeywords.LambdaFunction) 968Await TestAsync(text.Value, HelpKeywords.QueryLet) 979Await TestAsync(text.Value, HelpKeywords.PartialMethod) 990Await TestAsync(text.Value, HelpKeywords.Main) 1002Await TestAsync(text.Value, "vb.Me") 1014Await TestAsync(text.Value, "vb.Module") 1026Await TestAsync(text.Value, "vb.MyBase") 1038Await TestAsync(text.Value, "vb.MyBase") 1052Await TestAsync(text.Value, HelpKeywords.NewConstraint) 1065Await TestAsync(text.Value, HelpKeywords.ObjectInitializer) 1078Await TestAsync(text.Value, HelpKeywords.ObjectInitializer) 1090Await TestAsync(text.Value, HelpKeywords.Nullable) 1102Await TestAsync(text.Value, HelpKeywords.OnError) 1114Await TestAsync(text.Value, HelpKeywords.OptionCompare) 1126Await TestAsync(text.Value, HelpKeywords.OptionExplicit) 1138Await TestAsync(text.Value, HelpKeywords.OptionInfer) 1150Await TestAsync(text.Value, HelpKeywords.OptionStrict) 1162Await TestAsync(text.Value, "vb.Option") 1174Await TestAsync(text.Value, "vb.CInt") 1186Await TestAsync(text.Value, "vb.DirectCast") 1198Await TestAsync(text.Value, "vb.TryCast") 1210Await TestAsync(text.Value, HelpKeywords.PreprocessorConst) 1225Await TestAsync(text.Value, HelpKeywords.PreprocessorIf) 1240Await TestAsync(text.Value, HelpKeywords.PreprocessorIf) 1255Await TestAsync(text.Value, HelpKeywords.PreprocessorIf) 1270Await TestAsync(text.Value, HelpKeywords.PreprocessorIf) 1283Await TestAsync(text.Value, HelpKeywords.Region) 1296Await TestAsync(text.Value, HelpKeywords.Region) 1309Await TestAsync(text.Value, "vb.RaiseEvent") 1322Await TestAsync(text.Value, HelpKeywords.Redim) 1335Await TestAsync(text.Value, "vb.Is") 1351Await TestAsync(text.Value, "vb.RemoveHandler") 1363Await TestAsync(text.Value, "vb.Resume") 1375Await TestAsync(text.Value, "vb.Return") 1387Await TestAsync(text.Value, "vb.Stop") 1401Await TestAsync(text.Value, "vb.SyncLock") 1413Await TestAsync(text.Value, "vb.Throw") 1426Await TestAsync(text.Value, HelpKeywords.Negate) 1440Await TestAsync(text.Value, "vb.Using") 1452Await TestAsync(text.Value, "vb.Yield") 1474Await TestAsync(text.Value, "vb.Integer") 1486Await TestAsync(text.Value, "System.Console.WriteLine") 1498Await TestAsync(text.Value, "vb.Date") 1515End Module]]></a>.Value, HelpKeywords.XmlDocComment) 1524End Class]]></a>.Value, "vb.AnonymousType") 1540End Module]]></a>.Value, "vb.AnonymousType") 1553End Module]]></a>.Value, "vb.ByVal") 1566End Module]]></a>.Value, "vb.Of") 1580]]></a>.Value, "vb.+=") 1594End Module]]></a>.Value, "System.Collections.Generic.IEnumerable`1") 1607End Module]]></a>.Value, "vb.Sub") 1618]]></a>.Value, "vb.As") 1631]]></a>.Value, "vb.Await") 1638End Class]]></a>.Value, "vb.AutoImplementedProperty") 1647End Module]]></a>.Value, "System.Int32.MaxValue") 1665]]></a>.Value, "vb.Public") 1683]]></a>.Value, "vb.Public") 1693]]></a>.Value, "vb.=") 1702End Module]]></a>.Value, "vb.Rem") 1711End Module]]></a>.Value, HelpKeywords.TaskListUserComments) 1723]]></a>.Value, "vb.Call") 1728Await TestAsync(<a><![CDATA[Imports <xmln[||]s:ns="goo">]]></a>.Value, "vb.ImportsXmlns") 1741End Module]]></a>.Value, "System.String()") 1750End Module]]></a>.Value, "") 1763End Module]]></a>.Value, "System.Int32.Parse") 1777End Module]]></a>.Value, "vb.CType") 1791End Module]]></a>.Value, "vb.Nothing") 1804End Module]]></a>.Value, "vb.Nullable") 1820End Module]]></a>.Value, "vb.String") 1831End Module]]></a>.Value, "vb.UInteger") 1838]]></a>.Value, "vb.Structure") 1855]]></a>.Value, "vb.XmlLiteralDocument") 1872]]></a>.Value, "vb.XmlLiteralElement") 1889]]></a>.Value, "vb.XmlLiteralComment") 1902End Class]]></a>.Value, "vb.While") 1915]]></a>.Value, "vb.ImplementsClause") 1929]]></a>.Value, "vb.AddressOf") 1934Await TestAsync(<a><![CDATA[[|Shared|]]]></a>.Value, "vb.Shared") 1939Await TestAsync(<a><![CDATA[[|Widening|]]]></a>.Value, "vb.Widening") 1944Await TestAsync(<a><![CDATA[[|CType|]]]></a>.Value, "vb.CType") 1949Await TestAsync(<a><![CDATA[[|Narrowing|]]]></a>.Value, "vb.Narrowing") 1954Await TestAsync(<a><![CDATA[[|Operator|]]]></a>.Value, "vb.Operator") 1959Await TestAsync(<a><![CDATA[[|AddHandler|]]]></a>.Value, "vb.AddHandler") 1964Await TestAsync(<a><![CDATA[Declare [|Ansi|]]]></a>.Value, "vb.Ansi") 1969Await TestAsync(<a><![CDATA[Declare [|Auto|]]]></a>.Value, "vb.Auto") 1974Await TestAsync(<a><![CDATA[Declare [|Unicode|]]]></a>.Value, "vb.Unicode") 1979Await TestAsync(<a><![CDATA[[|Handles|]]]></a>.Value, "vb.Handles") 1991]]></a>.Value, "vb.IDisposable") 2001]]></a>.Value, "System.Exception") 2011End Class]]></a>.Value, "vb.Not") 2021End Class]]></a>.Value, "vb.Integer") 2044End Module]]></a>.Value, "vb.QueryGroupJoin") 2067End Module]]></a>.Value, "vb.QueryGroupJoinIn") 2090End Module]]></a>.Value, "vb.Equals") 2113End Module]]></a>.Value, "vb.QuerySelect") 2136End Module]]></a>.Value, "System.Linq.Enumerable.Count") 2145End Class]]></a>.Value, "vb.IsTrue") 2158End Module]]></a>.Value, "vb.AnonymousType") 2169End Class]]></a>.Value, "System.Object.GetType") 2182End Module]]></a>.Value, "System.Array.Length") 2191End Module]]></a>.Value, "System.String()") 2201End Module]]></a>.Value, "System.Int32") 2212End Module]]></a>.Value, "System.Linq.Enumerable") 2221End Module]]></a>.Value, "vb.String") 2234End Module]]></a>.Value, "System.Int32.ToString") 2247End Module]]></a>.Value, "System.Int32.ToString") 2256End Module]]></a>.Value, "vb.NameOf")
Preview\PreviewChangesTests.vb (2)
29}</text>.Value, composition:=s_composition) 129}</text>.Value, composition:=s_composition)
Snippets\CSharpSnippetCommandHandlerTests.vb (4)
98}]]></Markup>.Value 103}]]></Markup>.Value.Replace(vbLf, vbCrLf) 189]]></Markup>.Value 207]]></Markup>.Value
Snippets\SnippetCompletionProviderTests.vb (4)
66End Class</File>.Value 80End Class</File>.Value 96End Class</File>.Value 112End Class</File>.Value
Snippets\VisualBasicSnippetCommandHandlerTests.vb (23)
94]]></Markup>.Value 99]]></Markup>.Value.Replace(vbLf, vbCrLf) 117]]></Markup>.Value 122]]></Markup>.Value.Replace(vbLf, vbCrLf) 137]]></Markup>.Value 147]]></Code>.Value.Replace(vbLf, vbCrLf) 158]]></Markup>.Value 168]]></Code>.Value.Replace(vbLf, vbCrLf) 179]]></Markup>.Value 189]]></Code>.Value.Replace(vbLf, vbCrLf) 200]]></Markup>.Value 211]]></Code>.Value.Replace(vbLf, vbCrLf) 222]]></Markup>.Value 232]]></Code>.Value.Replace(vbLf, vbCrLf) 243]]></Markup>.Value 253]]></Code>.Value.Replace(vbLf, vbCrLf) 267]]></Markup>.Value 284]]></Markup>.Value 301]]></Markup>.Value 318]]></Markup>.Value 333]]></Markup>.Value 349]]></Markup>.Value 361Dim markup = <Markup>?$$</Markup>.Value
SolutionExplorer\RuleSetDocumentExtensionsTests.vb (7)
29Assert.Equal(expectedRuleSet.Value, document.Element("RuleSet").Value) 52Assert.Equal(expectedRuleSet.Value, document.Element("RuleSet").Value) 78Assert.Equal(expectedRuleSet.Value, document.Element("RuleSet").Value) 107Assert.Equal(expectedRuleSet.Value, document.Element("RuleSet").Value) 126Assert.Equal(expectedRuleSet.Value, document.Element("RuleSet").Value) 148Assert.Equal(expectedRuleSet.Value, document.Element("RuleSet").Value) 175Assert.Equal(expectedRuleSet.Value, document.Element("RuleSet").Value)
Venus\CSharpContainedLanguageSupportTests.vb (24)
160}</text>.Value 189}</text>.Value 215}</text>.Value 243}</text>.Value 274}</text>.Value 308}</text>.Value 344}</text>.Value 377}</text>.Value 416}</text>.Value 459}</text>.Value 487}</text>.Value 530}</text>.Value 627}</text>.Value 670}</text>.Value 694}</text>.Value 718}</text>.Value 743}</text>.Value 771}</text>.Value 796}</text>.Value 827}</text>.Value 854}</text>.Value 872Dim code As String = <text>public partial class Goo { }</text>.Value 890Dim code As String = <text>namespace Goo { }</text>.Value 923}</text>.Value
Venus\VisualBasicContainedLanguageSupportTests.vb (32)
74End Class</text>.Value 87End Class</text>.Value 103End Class</text>.Value 120End Class</text>.Value 139End Namespace</text>.Value 158End Namespace</text>.Value 176</text>.Value 198</text>.Value 226</text>.Value 252End Class</text>.Value 279End Class</text>.Value 308End Class</text>.Value 340End Class</text>.Value 370End Class</text>.Value 401End Class</text>.Value 436End Class</text>.Value 475End Class</text>.Value 505End Class</text>.Value 543End Class</text>.Value 674End Class</text>.Value 715End Class</text>.Value 737End Class</text>.Value 759End Class</text>.Value 782End Class</text>.Value 809</text>.Value 833End Class</text>.Value 862End Class</text>.Value 887End Class</text>.Value 907End Class</text>.Value 926End Namespace</text>.Value 956End Class</text>.Value 981</text>.Value
Microsoft.VisualStudio.LanguageServices.VisualBasic (4)
Options\StyleViewModel.vb (4)
114]]></a>.Value 125]]></a>.Value 136]]></a>.Value 147]]></a>.Value
Roslyn.Compilers.VisualBasic.IOperation.UnitTests (3)
IOperation\IOperationTests_IAttributeOperation.vb (1)
354</expected>.Value
IOperation\IOperationTests_IAwaitExpression.vb (2)
283VerifyOperationTreeAndDiagnosticsForTest(Of AwaitExpressionSyntax)(source.Value, expectedOperationTree, expectedDiagnostics, useLatestFramework:=True) 321VerifyOperationTreeAndDiagnosticsForTest(Of AwaitExpressionSyntax)(source.Value, expectedOperationTree, expectedDiagnostics, useLatestFramework:=True)
Roslyn.Diagnostics.Analyzers (6)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
422.Where(e => e.Name.LocalName == "SymbolKind" && e.Value == "Method").ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (5)
310=> (Accessibility)Enum.Parse(typeof(Accessibility), accessibilityElement.Value); 421var symbolKind = (SymbolKind)Enum.Parse(typeof(SymbolKind), symbolKindElement.Value); 433=> new((TypeKind)Enum.Parse(typeof(TypeKind), typeKindElement.Value)); 436=> new((MethodKind)Enum.Parse(typeof(MethodKind), methodKindElement.Value)); 536=> new((ModifierKindEnum)Enum.Parse(typeof(ModifierKindEnum), modifierElement.Value));
System.ComponentModel.TypeConverter (1)
MS\Internal\Xml\Linq\ComponentModel\XComponentModel.cs (1)
399return _element.Value;
System.Private.Xml.Linq (30)
System\Xml\Linq\XElement.cs (28)
1210/// <see cref="Value"/> property of the attribute. 1250/// to the <see cref="Value"/> property of the child element. 1283/// and assigned to the <see cref="Value"/> property. 1344return element.Value; 1367return XmlConvert.ToBoolean(element.Value.ToLowerInvariant()); 1387return XmlConvert.ToBoolean(element.Value.ToLowerInvariant()); 1410return XmlConvert.ToInt32(element.Value); 1430return XmlConvert.ToInt32(element.Value); 1453return XmlConvert.ToUInt32(element.Value); 1473return XmlConvert.ToUInt32(element.Value); 1496return XmlConvert.ToInt64(element.Value); 1516return XmlConvert.ToInt64(element.Value); 1539return XmlConvert.ToUInt64(element.Value); 1559return XmlConvert.ToUInt64(element.Value); 1582return XmlConvert.ToSingle(element.Value); 1602return XmlConvert.ToSingle(element.Value); 1625return XmlConvert.ToDouble(element.Value); 1645return XmlConvert.ToDouble(element.Value); 1668return XmlConvert.ToDecimal(element.Value); 1688return XmlConvert.ToDecimal(element.Value); 1711return DateTime.Parse(element.Value, CultureInfo.InvariantCulture, System.Globalization.DateTimeStyles.RoundtripKind); 1731return DateTime.Parse(element.Value, CultureInfo.InvariantCulture, System.Globalization.DateTimeStyles.RoundtripKind); 1754return XmlConvert.ToDateTimeOffset(element.Value); 1774return XmlConvert.ToDateTimeOffset(element.Value); 1797return XmlConvert.ToTimeSpan(element.Value); 1817return XmlConvert.ToTimeSpan(element.Value); 1840return XmlConvert.ToGuid(element.Value); 1860return XmlConvert.ToGuid(element.Value);
System\Xml\XPath\XNodeNavigator.cs (2)
275return ((XElement)_source).Value; 280return root != null ? root.Value : string.Empty;
Test.Utilities (6)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
422.Where(e => e.Name.LocalName == "SymbolKind" && e.Value == "Method").ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (5)
310=> (Accessibility)Enum.Parse(typeof(Accessibility), accessibilityElement.Value); 421var symbolKind = (SymbolKind)Enum.Parse(typeof(SymbolKind), symbolKindElement.Value); 433=> new((TypeKind)Enum.Parse(typeof(TypeKind), typeKindElement.Value)); 436=> new((MethodKind)Enum.Parse(typeof(MethodKind), methodKindElement.Value)); 536=> new((ModifierKindEnum)Enum.Parse(typeof(ModifierKindEnum), modifierElement.Value));
Text.Analyzers (7)
CodeAnalysisDictionary.cs (1)
102=> document.Descendants(section).SelectMany(section => section.Elements(property)).Select(element => element.Value.Trim());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
422.Where(e => e.Name.LocalName == "SymbolKind" && e.Value == "Method").ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (5)
310=> (Accessibility)Enum.Parse(typeof(Accessibility), accessibilityElement.Value); 421var symbolKind = (SymbolKind)Enum.Parse(typeof(SymbolKind), symbolKindElement.Value); 433=> new((TypeKind)Enum.Parse(typeof(TypeKind), typeKindElement.Value)); 436=> new((MethodKind)Enum.Parse(typeof(MethodKind), methodKindElement.Value)); 536=> new((ModifierKindEnum)Enum.Parse(typeof(ModifierKindEnum), modifierElement.Value));