34 references to XElement
CustomEncryptorSample (2)
CustomXmlDecryptor.cs (1)
24return new XElement(encryptedElement.Elements().Single());
CustomXmlEncryptor.cs (1)
28new XElement(plaintextElement));
IIS.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
269var rootApplication = new XElement(application);
src\Servers\IIS\IIS\test\Common.FunctionalTests\MultiApplicationTests.cs (1)
132var newApplication = new XElement(application);
IIS.LongTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
269var rootApplication = new XElement(application);
IIS.NewHandler.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
269var rootApplication = new XElement(application);
IIS.NewShim.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
269var rootApplication = new XElement(application);
IIS.ShadowCopy.Tests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
269var rootApplication = new XElement(application);
IISExpress.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
269var rootApplication = new XElement(application);
src\Servers\IIS\IIS\test\Common.FunctionalTests\MultiApplicationTests.cs (1)
132var newApplication = new XElement(application);
Microsoft.AspNetCore.DataProtection (9)
Repositories\EphemeralXmlRepository.cs (3)
41yield return new XElement(element); // makes a deep copy so caller doesn't inadvertently modify it 49var cloned = new XElement(element); // makes a deep copy so caller doesn't inadvertently modify it 70deletableElements.Add(new DeletableElement(storedElement, new XElement(storedElement)));
XmlEncryption\NullXmlDecryptor.cs (1)
31return new XElement(encryptedElement.Elements().Single());
XmlEncryption\NullXmlEncryptor.cs (1)
58new XElement(plaintextElement) /* copy ctor */);
XmlEncryption\XmlEncryptionExtensions.cs (4)
29var doc = new XDocument(new XElement(element)); 49var clonedElementWhichRequiresDecryption = new XElement(elementWhichRequiresDecryption); 111var doc = new XDocument(new XElement(element)); 130var clonedElementWhichRequiresEncryption = new XElement(elementWhichRequiresEncryption);
Microsoft.AspNetCore.DataProtection.Tests (1)
XmlEncryption\XmlEncryptionExtensionsTests.cs (1)
314.Returns<XElement>(element => new EncryptedXmlInfo(new XElement(element), typeof(MyXmlDecryptor)));
Microsoft.AspNetCore.Http.Connections.Tests (2)
src\SignalR\common\Shared\EphemeralDataProtectionProvider.cs (2)
31 yield return new XElement(element); // makes a deep copy so caller doesn't inadvertently modify it 37 var cloned = new XElement(element); // makes a deep copy so caller doesn't inadvertently modify it
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (2)
src\SignalR\common\Shared\EphemeralDataProtectionProvider.cs (2)
31 yield return new XElement(element); // makes a deep copy so caller doesn't inadvertently modify it 37 var cloned = new XElement(element); // makes a deep copy so caller doesn't inadvertently modify it
Microsoft.AspNetCore.SignalR.Tests (2)
src\SignalR\common\Shared\EphemeralDataProtectionProvider.cs (2)
31 yield return new XElement(element); // makes a deep copy so caller doesn't inadvertently modify it 37 var cloned = new XElement(element); // makes a deep copy so caller doesn't inadvertently modify it
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
384UpgradeSerialization_4To5(rootElement = new XElement(rootElement));
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
384UpgradeSerialization_4To5(rootElement = new XElement(rootElement));
Microsoft.DotNet.Build.Tasks.Installers (2)
src\GenerateMacOSDistributionFile.cs (2)
77choiceElements.Select(c => new XElement(c) 80choiceElements.Select(c => new XElement(c)
SignalR.Client.FunctionalTestApp (2)
src\SignalR\common\Shared\EphemeralDataProtectionProvider.cs (2)
31 yield return new XElement(element); // makes a deep copy so caller doesn't inadvertently modify it 37 var cloned = new XElement(element); // makes a deep copy so caller doesn't inadvertently modify it
Stress.ApiService (1)
Program.cs (1)
198var xmlWithUrl = new XElement(new XElement("url", "http://localhost:8080")).ToString();
System.Private.Xml.Linq (1)
System\Xml\Linq\XElement.cs (1)
1955return new XElement(this);