Skip to content

Commit

Permalink
yml 10
Browse files Browse the repository at this point in the history
  • Loading branch information
iadgovuser29 committed Jan 7, 2025
1 parent 72036f2 commit ff082c1
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/dotnet-build-componentclassregistry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ jobs:
dotnet deb install
dotnet rpm install
dotnet zip install
dotnet deb -r linux-x64 -c Debug
dotnet rpm -r linux-x64 -c Debug
dotnet zip -r linux-x64 -c Debug
dotnet zip -r win-x64 -c Debug
dotnet deb -r linux-x64 -c Release
dotnet rpm -r linux-x64 -c Release
dotnet zip -r linux-x64 -c Release
Expand All @@ -49,6 +53,10 @@ jobs:
dotnet deb install
dotnet rpm install
dotnet zip install
dotnet deb -r linux-x64 -c Debug
dotnet rpm -r linux-x64 -c Debug
dotnet zip -r linux-x64 -c Debug
dotnet zip -r win-x64 -c Debug
dotnet deb -r linux-x64 -c Release
dotnet rpm -r linux-x64 -c Release
dotnet zip -r linux-x64 -c Release
Expand All @@ -59,6 +67,10 @@ jobs:
dotnet deb install
dotnet rpm install
dotnet zip install
dotnet deb -r linux-x64 -c Debug
dotnet rpm -r linux-x64 -c Debug
dotnet zip -r linux-x64 -c Debug
dotnet zip -r win-x64 -c Debug
dotnet deb -r linux-x64 -c Release
dotnet rpm -r linux-x64 -c Release
dotnet zip -r linux-x64 -c Release
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,5 +95,15 @@ public struct StorageDeviceNumber {
public static bool operator !=(StorageDeviceNumber c1, StorageDeviceNumber c2) {
return !c1.Equals(c2);
}

public override bool Equals(object? obj) {
if (obj is not StorageDeviceNumber other) { // is not performs null check
return false;
}

return DeviceType == other.DeviceType && DeviceNumber == other.DeviceNumber && PartitionNumber == other.PartitionNumber;
}

public override int GetHashCode() => (DeviceType, DeviceNumber, PartitionNumber).GetHashCode();
}
}

0 comments on commit ff082c1

Please sign in to comment.