mirror of
https://github.com/frosch95/K8sFileBrowser.git
synced 2026-04-11 12:58:22 +02:00
23 lines
446 B
C#
23 lines
446 B
C#
namespace K8sFileBrowser.Models;
|
|
|
|
public class Container
|
|
{
|
|
public string Name { get; set; } = string.Empty;
|
|
|
|
public override string ToString()
|
|
{
|
|
return Name;
|
|
}
|
|
|
|
public override bool Equals(object? obj)
|
|
{
|
|
if (obj is Container container)
|
|
{
|
|
return Name == container.Name;
|
|
}
|
|
|
|
return false;
|
|
}
|
|
|
|
public override int GetHashCode() => Name.GetHashCode();
|
|
} |