## Definition - [x] `IEquatable<T>`: implicit implementation. - [x] `Equals`: value semantics. - [x] `GetHashCode`: value semantics. - [x] `ToString`. - [x] `Type`: never throws, returns a backing field. ````C# public BoundaryType Type { get; } ```` - [x] `Value`: never throws, returns a backing field. ````C# public T Value { get; } ```` ## Implementation - [x] `Equals` - [x] `GetHashCode` - [x] `ToString` - [x] `Type` - [x] `Value` ## Tests - With `System.Double` as a type argument and a custom comparer: - [x] `Equals` - [x] `GetHashCode` - [x] `ToString` - [x] `Type` - [x] `Value` - With custom class as a type argument and a custom comparer: - [x] `Equals` - [x] `GetHashCode` - [x] `ToString` - [x] `Type` - [x] `Value` ## XML documentation - [ ] `Equals` - [ ] `GetHashCode` - [ ] `ToString` - [ ] `Type` - [ ] `Value` ## Proper documentation - [ ] `Equals` - [ ] `GetHashCode` - [ ] `ToString` - [ ] `Type` - [ ] `Value`
Definition
IEquatable<T>: implicit implementation.Equals: value semantics.GetHashCode: value semantics.ToString.Type: never throws, returns a backing field.Value: never throws, returns a backing field.Implementation
EqualsGetHashCodeToStringTypeValueTests
System.Doubleas a type argument and a custom comparer:EqualsGetHashCodeToStringTypeValueEqualsGetHashCodeToStringTypeValueXML documentation
EqualsGetHashCodeToStringTypeValueProper documentation
EqualsGetHashCodeToStringTypeValue