File: EmbeddedItem.cs
Web Access
Project: src\aspnetcore\src\FileProviders\Manifest.MSBuildTask\src\Microsoft.Extensions.FileProviders.Embedded.Manifest.Task.csproj (Microsoft.Extensions.FileProviders.Embedded.Manifest.Task)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
using System;
 
namespace Microsoft.Extensions.FileProviders.Embedded.Manifest.Task;
 
public class EmbeddedItem : IEquatable<EmbeddedItem>
{
    public string ManifestFilePath { get; set; }
 
    public string AssemblyResourceName { get; set; }
 
    public bool Equals(EmbeddedItem other) =>
        string.Equals(ManifestFilePath, other?.ManifestFilePath, StringComparison.Ordinal) &&
        string.Equals(AssemblyResourceName, other?.AssemblyResourceName, StringComparison.Ordinal);
 
    public override bool Equals(object obj) => Equals(obj as EmbeddedItem);
    public override int GetHashCode() => ManifestFilePath.GetHashCode() ^ AssemblyResourceName.GetHashCode();
}