mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-21 07:17:56 +08:00
14247fa75a
* new lines & braces * Tabs /space auto fix Co-authored-by: Clint Rutkas <crutkas@microsoft.com>
35 lines
745 B
C#
35 lines
745 B
C#
namespace Wox.Plugin
|
|
{
|
|
public class PluginPair
|
|
{
|
|
public IPlugin Plugin { get; internal set; }
|
|
public PluginMetadata Metadata { get; internal set; }
|
|
|
|
|
|
|
|
public override string ToString()
|
|
{
|
|
return Metadata.Name;
|
|
}
|
|
|
|
public override bool Equals(object obj)
|
|
{
|
|
PluginPair r = obj as PluginPair;
|
|
if (r != null)
|
|
{
|
|
return string.Equals(r.Metadata.ID, Metadata.ID);
|
|
}
|
|
else
|
|
{
|
|
return false;
|
|
}
|
|
}
|
|
|
|
public override int GetHashCode()
|
|
{
|
|
var hashcode = Metadata.ID?.GetHashCode() ?? 0;
|
|
return hashcode;
|
|
}
|
|
}
|
|
}
|