| File: Settings\Items\ClearItem.cs | Web Access |
| Project: src\nuget-client\src\NuGet.Core\NuGet.Configuration\NuGet.Configuration.csproj (NuGet.Configuration) |
// Copyright(c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Xml.Linq; namespace NuGet.Configuration { public sealed class ClearItem : SettingItem { public override string ElementName => ConfigurationConstants.Clear; public override bool IsEmpty() => false; public ClearItem() { } internal ClearItem(XElement element, SettingsFile origin) : base(element, origin) { } public override SettingBase Clone() { var newItem = new ClearItem(); if (Origin != null) { newItem.SetOrigin(Origin); } return newItem; } public override bool Equals(object? other) => other is ClearItem; public override int GetHashCode() => ElementName.GetHashCode(); } }