125 references to XElement
BuildBoss (1)
InternalsVisibleTo.cs (1)
28var element = new XElement("InternalsVisibleTo");
dotnet-svcutil-lib (5)
Shared\MSBuildProj.cs (4)
84_projectReferenceGroup = new XElement("ItemGroup"); 107_referenceGroup = new XElement("ItemGroup"); 131_packageReferenceGroup = new XElement("ItemGroup"); 450XElement propertyGroup = new XElement(group);
Shared\Utilities\RuntimeEnvironmentHelper.cs (1)
100var addElement = new XElement("add");
dotnet-user-jwts (1)
src\Tools\Shared\SecretsHelpers\UserSecretsCreator.cs (1)
57propertyGroup = new XElement("PropertyGroup");
dotnet-user-secrets (1)
src\Tools\Shared\SecretsHelpers\UserSecretsCreator.cs (1)
57propertyGroup = new XElement("PropertyGroup");
illink (1)
ILLink.Tasks (1)
CombineLinkerXmlFiles.cs (1)
30 var combined = new XElement ("linker");
Microsoft.AspNetCore.Authentication.Test (3)
CookieTests.cs (1)
1890var xml = new XElement("xml");
TestExtensions.cs (2)
49var xml = new XElement("xml"); 68var xml = new XElement("xml");
Microsoft.AspNetCore.DataProtection (3)
XmlEncryption\XmlEncryptionExtensions.cs (2)
56var newPlaceholder = new XElement("placeholder"); 137var newPlaceholder = new XElement("placeholder");
XmlExtensions.cs (1)
21var newElement = new XElement(element.Name);
Microsoft.AspNetCore.DataProtection.Tests (22)
Internal\KeyManagementOptionsPostSetupTest.cs (1)
17private static readonly XElement xElement = new("element");
Repositories\EphemeralXmlRepositoryTests.cs (3)
47var element1 = new XElement("element1"); 48var element2 = new XElement("element2"); 91repository.StoreElement(new XElement("element1"), friendlyName: "friendly1");
Repositories\FileSystemXmlRepositoryTests.cs (9)
130repository.StoreElement(new XElement("element1"), friendlyName: null); 131repository.StoreElement(new XElement("element2"), friendlyName: null); 132repository.StoreElement(new XElement("element3"), friendlyName: null); 152var element1 = new XElement("element1"); 153var element2 = new XElement("element2"); 201repository.StoreElement(new XElement("element1"), friendlyName: "friendly1"); 202repository.StoreElement(new XElement("element2"), friendlyName: "friendly2"); 203repository.StoreElement(new XElement("element3"), friendlyName: "friendly3"); 253repository.StoreElement(new XElement("element1"), friendlyName: "friendly1");
Repositories\RegistryXmlRepositoryTests.cs (6)
117repository.StoreElement(new XElement("element1"), friendlyName: null); 118repository.StoreElement(new XElement("element2"), friendlyName: null); 119repository.StoreElement(new XElement("element3"), friendlyName: null); 140var element1 = new XElement("element1"); 141var element2 = new XElement("element2"); 196repository.StoreElement(new XElement("element1"), friendlyName: "friendly1");
ServiceCollectionTests.cs (1)
99var xElement = new XElement("element");
XmlEncryption\XmlEncryptionExtensionsTests.cs (2)
217mockXmlEncryptor.Setup(o => o.Encrypt(It.IsAny<XElement>())).Returns(new EncryptedXmlInfo(new XElement("theElement"), typeof(MyXmlDecryptor))); 265.Returns<XElement>(element => new EncryptedXmlInfo(new XElement(element.Name.LocalName + "_encrypted"), typeof(MyXmlDecryptor)));
Microsoft.AspNetCore.Identity.InMemory.Test (1)
FunctionalTest.cs (1)
409var xml = new XElement("xml");
Microsoft.AspNetCore.Rewrite (1)
IISUrlRewrite\UrlRewriteFileParser.cs (1)
28throw new InvalidUrlRewriteFormatException(new XElement(RewriteTags.Rewrite), "The root element '<rewrite>' is missing");
Microsoft.AspNetCore.Server.IntegrationTesting (2)
Deployers\RemoteWindowsDeployer\RemoteWindowsDeployer.cs (2)
169environmentVariablesSection = new XElement("environmentVariables"); 175var environmentVariable = new XElement("environmentVariable");
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (1)
XElementExtensions.cs (1)
26existing = new XElement(name);
Microsoft.Build.Tasks.Core (4)
AssemblyDependency\GenerateBindingRedirects.cs (2)
80runtimeNode = new XElement("runtime"); 335new XElement("configuration"));
CombineTargetFrameworkInfoProperties.cs (1)
50new(RootElementName);
CombineXmlElements.cs (1)
36XElement root = new XElement(RootElementName);
Microsoft.Cci.Extensions (3)
Dgml\DgmlExtensions.cs (3)
31var xRoot = new XElement(XName.Get("DirectedGraph", dgmlNsp)); 34var xNodes = new XElement(XName.Get("Nodes", dgmlNsp)); 47var xLinks = new XElement(XName.Get("Links", dgmlNsp));
Microsoft.CodeAnalysis (1)
InternalUtilities\XmlUtilities.cs (1)
28XContainer temp = new XElement("temp");
Microsoft.CodeAnalysis.CodeStyle (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (3)
248var symbolKindsElement = new XElement(nameof(ApplicableSymbolKindList)); 260var accessibilitiesElement = new XElement(nameof(ApplicableAccessibilityList)); 272var modifiersElement = new XElement(nameof(RequiredModifierList));
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (6)
EmbeddedLanguages\Json\CSharpJsonParserTests.cs (3)
200var element = new XElement("Diagnostic"); 227var element = new XElement(node.Kind.ToString()); 274var element = new XElement(token.Kind.ToString());
EmbeddedLanguages\RegularExpressions\CSharpRegexParserTests.cs (3)
233var element = new XElement(node.Kind.ToString()); 248var element = new XElement(alternationNode.Kind.ToString()); 257var element = new XElement(token.Kind.ToString());
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\Metadata\PE\LoadingNamespacesAndTypes.cs (1)
106XElement elem = new XElement("type");
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
EmitMetadataTestBase.cs (2)
48XElement elem = new XElement("type"); 87XElement elem = new XElement("field");
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (2)
Emit\EmitMetadata.vb (2)
157Dim elem As Xml.Linq.XElement = New System.Xml.Linq.XElement("type") 191Dim elem As Xml.Linq.XElement = New System.Xml.Linq.XElement("field")
Microsoft.CodeAnalysis.Workspaces (5)
Shared\Extensions\ISymbolExtensions.cs (2)
440var replacement = new XElement(DocumentationCommentXmlNames.SeeElementName); 575XContainer temp = new XElement("temp");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (3)
248var symbolKindsElement = new XElement(nameof(ApplicableSymbolKindList)); 260var accessibilitiesElement = new XElement(nameof(ApplicableAccessibilityList)); 272var modifiersElement = new XElement(nameof(RequiredModifierList));
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Compilers\Core\Portable\InternalUtilities\XmlUtilities.cs (1)
28XContainer temp = new XElement("temp");
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
SolutionGeneration.cs (1)
333return new XElement(XName.Get(name, NS));
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Workspaces\TestWorkspace_XmlCreation.cs (1)
147var element = new XElement(CompilationOptionsElementName);
Microsoft.DotNet.Arcade.Sdk (2)
src\SourceBuild\AddSourceMappingToNugetConfig.cs (1)
58pkgSrcMappingClearElement = new XElement("clear");
src\SourceBuild\AddSourceToNuGetConfig.cs (1)
71packageSourcesElement.AddFirst(new XElement("clear"));
Microsoft.DotNet.Build.Tasks.Installers (1)
src\GenerateMacOSDistributionFile.cs (1)
98optionsElement = new XElement("options");
Microsoft.DotNet.Build.Tasks.Workloads (1)
Msi\WorkloadPackGroupMsi.wix.cs (1)
184var xml = new XElement(ns + "Directory");
Microsoft.DotNet.PackageTesting (4)
VerifyClosure.cs (4)
346var doc = new XDocument(new XElement(s_dgmlns + "DirectedGraph")); 347var nodesElement = new XElement(s_dgmlns + "Nodes"); 348var linksElement = new XElement(s_dgmlns + "Links"); 377var categoriesElement = new XElement(s_dgmlns + "Categories");
Microsoft.DotNet.SharedFramework.Sdk (4)
src\Microsoft.DotNet.PackageTesting\VerifyClosure.cs (4)
346var doc = new XDocument(new XElement(s_dgmlns + "DirectedGraph")); 347var nodesElement = new XElement(s_dgmlns + "Nodes"); 348var linksElement = new XElement(s_dgmlns + "Links"); 377var categoriesElement = new XElement(s_dgmlns + "Categories");
Microsoft.DotNet.SourceBuild.Tasks (2)
src\UsageReport\ValidateUsageAgainstBaseline.cs (1)
83var report = new XElement("BaselineComparison");
src\UsageReport\WriteUsageReports.cs (1)
107var report = new XElement("AnnotatedUsages");
Microsoft.DotNet.XliffTasks (3)
Model\XElementExtensions.cs (2)
69targetElement = new XElement(Target); 122noteElement = new XElement(Note);
Model\XlfDocument.cs (1)
59new XElement(Body))));
Microsoft.Maui.Resizetizer (11)
GeneratePackageAppxManifest.cs (8)
84 identity = new XElement(xidentity); 128 properties = new XElement(xproperties); 174 applications = new XElement(xapplications); 183 application = new XElement(xapplication); 192 visual = new XElement(xvisual); 255 tile = new XElement(xtile); 312 showname = new XElement(xshowname); 331 splash = new XElement(xsplash);
GenerateTizenManifest.cs (3)
125 label = new XElement(xmlns + LabelName); 165 splashscreensElement = new XElement(xmlns + SplashScreensName); 178 var splashscreenElement = new XElement(xmlns + SplashScreenName);
PresentationFramework-SystemXmlLinq (1)
SystemXmlLinqExtension.cs (1)
21XElement xelement = new XElement("Dummy");
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\XmlDataContract.cs (1)
373o = new System.Xml.Linq.XElement("default");
System.Private.Xml.Linq (7)
System\Xml\Linq\XContainer.cs (4)
906XElement e = new XElement(_eCache.Get(r.NamespaceURI).GetName(r.LocalName)); 960XElement e = new XElement(_eCache.Get(r.NamespaceURI).GetName(r.LocalName)); 1020XElement e = new XElement(_eCache.Get(r.NamespaceURI).GetName(r.LocalName)); 1134XElement e = new XElement(_eCache.Get(r.NamespaceURI).GetName(r.LocalName));
System\Xml\Linq\XElement.cs (2)
77: this(name) 137: this("default"!)
System\Xml\Linq\XNodeBuilder.cs (1)
183AddNode(new XElement(XNamespace.Get(namespaceName!).GetName(localName)));
XmlFileLogger (13)
LogProcessNode.cs (1)
128var propElement = new XElement("Properties");
ObjectModel\Build.cs (1)
66WriteChildren<Message>(parentElement, () => new XElement("BuildMessageEvents"));
ObjectModel\Item.cs (2)
71var element = new XElement("Item"); 79var metadataElement = new XElement(metadataItem.Key);
ObjectModel\Project.cs (1)
107WriteChildren<Message>(element, () => new XElement("ProjectMessageEvents"));
ObjectModel\Target.cs (2)
43WriteChildren<Message>(element, () => new XElement("TargetMessages")); 44WriteChildren<ItemGroup>(element, () => new XElement("ItemGroups"));
ObjectModel\Task.cs (5)
56WriteChildren<Message>(task, () => new XElement("TaskMessages")); 57WriteChildren<InputParameter>(task, () => new XElement("Parameters")); 58WriteChildren<OutputItem>(task, () => new XElement("OutputItems")); 59WriteChildren<OutputProperty>(task, () => new XElement("OutputProperties")); 63task.Add(new XElement("CommandLineArguments") { Value = CommandLineArguments });
ObjectModel\TaskParameter.cs (1)
46XElement element = new XElement(name);
xunit.console (2)
ConsoleRunner.cs (2)
282assembliesElement = new XElement("assemblies"); 335var assemblyElement = needsXml ? new XElement("assembly") : null;