124 references to XElement
CustomEncryptorSample (1)
CustomXmlEncryptor.cs (1)
26var newElement = new XElement("unencryptedKey",
dotnet-svcutil-lib (6)
Shared\MSBuildProj.cs (6)
541this.ReferenceGroup.Add(new XElement("Reference", new XAttribute("Include", dependency.AssemblyName), new XElement("HintPath", dependency.FullPath))); 544this.PacakgeReferenceGroup.Add(new XElement("PackageReference", new XAttribute("Include", dependency.Name), new XAttribute("Version", dependency.Version))); 547this.ReferenceGroup.Add(new XElement("DotNetCliToolReference", new XAttribute("Include", dependency.Name), new XAttribute("Version", dependency.Version))); 561this.ReferenceGroup.Add(new XElement("Content", 571this.PacakgeReferenceGroup.Add(new XElement("Content", 598XElement element = new XElement(propertyName, null);
IIS.LongTests (2)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (2)
1410new XElement("binding", 1413new XElement("binding",
IIS.NewHandler.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (2)
1410new XElement("binding", 1413new XElement("binding",
IIS.NewShim.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (2)
1410new XElement("binding", 1413new XElement("binding",
IISExpress.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (2)
1410new XElement("binding", 1413new XElement("binding",
illink (3)
Microsoft.AspNetCore.App.Analyzers.Test (2)
RouteEmbeddedLanguage\RoutePatternParserTests.cs (2)
265var parameterElement = new XElement("Parameter", 285new XElement("Diagnostic",
Microsoft.AspNetCore.Authentication.Test (4)
CookieTests.cs (2)
1893xml.Add(result.Ticket.Principal.Claims.Select(claim => new XElement("claim", new XAttribute("type", claim.Type), new XAttribute("value", claim.Value)))); 1897xml.Add(result.Ticket.Properties.Items.Select(extra => new XElement("extra", new XAttribute("type", extra.Key), new XAttribute("value", extra.Value))));
TestExtensions.cs (2)
55new XElement("claim", new XAttribute("type", claim.Type), 73xml.Add(new XElement("token", new XAttribute("name", token.Name),
Microsoft.AspNetCore.DataProtection (15)
AuthenticatedEncryption\ConfigurationModel\AuthenticatedEncryptorDescriptor.cs (1)
51var outerElement = new XElement("descriptor",
AuthenticatedEncryption\ConfigurationModel\CngCbcAuthenticatedEncryptorDescriptor.cs (2)
46var encryptionElement = new XElement("encryption", 61var rootElement = new XElement("descriptor",
AuthenticatedEncryption\ConfigurationModel\CngGcmAuthenticatedEncryptorDescriptor.cs (2)
45var encryptionElement = new XElement("encryption", 53var rootElement = new XElement("descriptor",
AuthenticatedEncryption\ConfigurationModel\ManagedAuthenticatedEncryptorDescriptor.cs (2)
45var encryptionElement = new XElement("encryption", 52var rootElement = new XElement("descriptor",
AuthenticatedEncryption\ConfigurationModel\SecretExtensions.cs (1)
37var masterKeyElement = new XElement("masterKey",
KeyManagement\XmlKeyManager.cs (3)
387var revocationElement = new XElement(RevocationElementName, 524var keyElement = new XElement(KeyElementName, 632var revocationElement = new XElement(RevocationElementName,
XmlEncryption\DpapiNGXmlEncryptor.cs (1)
85var element = new XElement("encryptedKey",
XmlEncryption\DpapiXmlEncryptor.cs (1)
82var element = new XElement("encryptedKey",
XmlEncryption\NullXmlEncryptor.cs (1)
56var newElement = new XElement("unencryptedKey",
XmlEncryption\XmlEncryptionExtensions.cs (1)
150new XElement(XmlConstants.EncryptedSecretElementName,
Microsoft.AspNetCore.Identity.InMemory.Test (2)
FunctionalTest.cs (2)
412xml.Add(result.Principal.Claims.Select(claim => new XElement("claim", new XAttribute("type", claim.Type), new XAttribute("value", claim.Value)))); 416xml.Add(result.Properties.Items.Select(extra => new XElement("extra", new XAttribute("type", extra.Key), new XAttribute("value", extra.Value))));
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (1)
XmlAssert.cs (1)
70return new XElement(
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
src\Mvc\Mvc.Formatters.Xml\test\XmlAssert.cs (1)
70return new XElement(
Microsoft.Build.Tasks.Core (5)
AssemblyDependency\GenerateBindingRedirects.cs (3)
93new XElement( 95new XElement( 100new XElement(
AssemblyDependency\ResolveAssemblyReference.cs (2)
1222new XElement( 1227new XElement(
Microsoft.Cci.Extensions (2)
Dgml\DgmlExtensions.cs (2)
41var xNode = new XElement(XName.Get("Node", dgmlNsp), 54var xLink = new XElement(XName.Get("Link", dgmlNsp),
Microsoft.CodeAnalysis.CodeStyle (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
464=> new(nameof(NamingStyle),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
321return new XElement("NamingPreferencesInfo",
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SerializableNamingRule.cs (1)
34var element = new XElement(nameof(SerializableNamingRule),
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (7)
EmbeddedLanguages\Json\CSharpJsonParserTests.cs (4)
238=> new( 247=> new( 254=> new( 260=> new(
EmbeddedLanguages\RegularExpressions\CSharpRegexParserTests.cs (3)
210new XElement("Capture", new XAttribute("Name", kvp.Key), new XAttribute("Span", kvp.Value), GetTextAttribute(text, kvp.Value))), 212new XElement("Capture", new XAttribute("Name", kvp.Key), new XAttribute("Span", kvp.Value), GetTextAttribute(text, kvp.Value))))); 220new XElement("Diagnostic",
Microsoft.CodeAnalysis.Test.Utilities (4)
InstrumentationChecker.cs (1)
273public static readonly XElement InstrumentationHelperSource = new XElement("file", new XAttribute("name", "c.vb"), InstrumentationHelperSourceStr);
Syntax\XmlHelpers.cs (3)
123xml = new XElement("Node", 164XElement retVal = new XElement("Node", 217XElement retVal = new XElement("Node",
Microsoft.CodeAnalysis.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
464=> new(nameof(NamingStyle),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
321return new XElement("NamingPreferencesInfo",
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SerializableNamingRule.cs (1)
34var element = new XElement(nameof(SerializableNamingRule),
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (4)
Workspaces\TestWorkspace_XmlCreation.cs (4)
80return new XElement(WorkspaceElementName, projectElements); 91return new XElement(ProjectElementName, 192var element = new XElement(DocumentElementName, 209return new XElement(DocumentFromSourceGeneratorElementName,
Microsoft.DotNet.Arcade.Sdk (1)
src\SourceBuild\AddSourceToNuGetConfig.cs (1)
43var sourceElementToAdd = new XElement(
Microsoft.DotNet.Build.Tasks.Installers (2)
src\GenerateMacOSDistributionFile.cs (2)
65.Select(component => new XElement("choice", 90.Select(component => new XElement("pkg-ref",
Microsoft.DotNet.Build.Tasks.Workloads (4)
Msi\MsiPayloadPackageProject.wix.cs (1)
61itemGroup.Add(new XElement("None",
Msi\WorkloadPackGroupMsi.wix.cs (3)
105registryKeyElement.Add(new XElement(ns + "RegistryKey", new XAttribute("Key", pack.Id), 106new XElement(ns + "RegistryKey", new XAttribute("Key", pack.PackageVersion), 107new XElement(ns + "RegistryValue", new XAttribute("Value", ""), new XAttribute("Type", "string")))));
Microsoft.DotNet.PackageTesting (5)
VerifyClosure.cs (5)
360linksElement.Add(new XElement(s_dgmlns + "Link", 369linksElement.Add(new XElement(s_dgmlns + "Link", 380categoriesElement.Add(new XElement(s_dgmlns + "Category", 385categoriesElement.Add(new XElement(s_dgmlns + "Category", 400parent.Add(new XElement(s_dgmlns + "Node",
Microsoft.DotNet.SharedFramework.Sdk (7)
src\CreateFrameworkListFile.cs (2)
67var frameworkManifest = new XElement("FileList", rootAttributes); 158var element = new XElement(
src\Microsoft.DotNet.PackageTesting\VerifyClosure.cs (5)
360linksElement.Add(new XElement(s_dgmlns + "Link", 369linksElement.Add(new XElement(s_dgmlns + "Link", 380categoriesElement.Add(new XElement(s_dgmlns + "Category", 385categoriesElement.Add(new XElement(s_dgmlns + "Category", 400parent.Add(new XElement(s_dgmlns + "Node",
Microsoft.DotNet.SourceBuild.Tasks (5)
src\UsageReport\AnnotatedUsage.cs (1)
19public XElement ToXml() => new XElement(
src\UsageReport\Usage.cs (1)
30public XElement ToXml() => new XElement(
src\UsageReport\UsageData.cs (1)
18public XElement ToXml() => new XElement(
src\UsageReport\UsagePattern.cs (1)
15public XElement ToXml() => new XElement(
src\UsageReport\XmlParsingHelpers.cs (1)
15public static XElement ToXElement(this PackageIdentity ident) => new XElement(
Microsoft.DotNet.VersionTools (10)
BuildManifest\Model\BlobArtifactModel.cs (1)
97public XElement ToXml() => new XElement(
BuildManifest\Model\BuildModel.cs (1)
28public XElement ToXml() => new XElement(
BuildManifest\Model\EndpointModel.cs (1)
49public XElement ToXml() => new XElement(
BuildManifest\Model\OrchestratedBuildModel.cs (1)
42public XElement ToXml() => new XElement(
BuildManifest\Model\PackageArtifactModel.cs (1)
115public XElement ToXml() => new XElement(
BuildManifest\Model\SigningInformationModel.cs (5)
101public XElement ToXml() => new XElement( 150public XElement ToXml() => new XElement( 186public XElement ToXml() => new XElement( 216public XElement ToXml() => new XElement( 257public XElement ToXml() => new XElement(
Microsoft.DotNet.XliffTasks (4)
Model\XlfDocument.cs (4)
49new XElement(Xliff, 54new XElement(File, 188new(TransUnit, 191new XElement(Target, new XAttribute("state", "new"), sourceNode.Source),
Microsoft.Extensions.FileProviders.Embedded.Tests (3)
Manifest\TestEntry.cs (2)
24new XElement("File", new XAttribute("Name", Name), new XElement("ResourcePath", ResourcePath)) : 25new XElement("Directory", new XAttribute("Name", Name), Children.Select(c => c.ToXElement()));
TestAssembly.cs (1)
34new XElement("Manifest",
Microsoft.VisualStudio.LanguageServices (7)
Snippets\SnippetExpansionClient.cs (7)
657declarations.Add(new XElement( 669declarations.Add(new XElement( 689new XElement( 692new XElement( 696new XElement( 698new XElement(snippetNamespace + "Declarations", declarations.ToArray()), 699new XElement(
XmlFileLogger (5)
ObjectModel\Build.cs (1)
47var root = new XElement("Build",
ObjectModel\Message.cs (1)
36element.Add(new XElement("Message", new XAttribute("Timestamp", _timestamp), new XText(_message)));
ObjectModel\Project.cs (1)
98var element = new XElement("Project",
ObjectModel\Target.cs (1)
35var element = new XElement("Target",
ObjectModel\Task.cs (1)
49var task = new XElement("Task",