/
vshmidt
/
masstransit
Обзор
Документация
Войти
/
vshmidt
/
masstransit
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/MassTransit.Abstractions/Internals/GraphValidation/Node.cs
36 строк
764 B
Chris Patterson
Adding multiple framework support for net461, netstandard2.0, netstandard2.1, and net6.0 where appropriate
07 май 2022, 04:26
07 май 2022, 04:26
71bb847
Код
Авторство
О чём код?
namespace MassTransit.Internals.GraphValidation { public class Node<T> { readonly int _index; public readonly T Value; protected Node(int index, T value) { _index = index; Value = value; } public int CompareTo(DependencyGraphNode<T>? other) { return !Equals(other) ? 0 : -1; } public override bool Equals(object? obj) { if (ReferenceEquals(null, obj)) return false; if (ReferenceEquals(this, obj)) return true; return false; } public override int GetHashCode() { return _index; } } }