mirror of
https://github.com/DarthAffe/ScreenCapture.NET.git
synced 2025-12-12 21:38:42 +00:00
35 lines
839 B
C#
35 lines
839 B
C#
namespace ScreenCapture
|
|
{
|
|
public readonly struct GraphicsCard
|
|
{
|
|
#region Properties & Fields
|
|
|
|
public int Index { get; }
|
|
public string Name { get; }
|
|
public int VendorId { get; }
|
|
public int DeviceId { get; }
|
|
|
|
#endregion
|
|
|
|
#region Constructors
|
|
|
|
public GraphicsCard(int index, string name, int vendorId, int deviceId)
|
|
{
|
|
this.Index = index;
|
|
this.Name = name;
|
|
this.VendorId = vendorId;
|
|
this.DeviceId = deviceId;
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Methods
|
|
|
|
public bool Equals(GraphicsCard other) => Index == other.Index;
|
|
public override bool Equals(object? obj) => obj is GraphicsCard other && Equals(other);
|
|
public override int GetHashCode() => Index;
|
|
|
|
#endregion
|
|
}
|
|
}
|