Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tracking: "continuous" upper boundary of comparables. #14

Open
37 of 49 tasks
SingleAccretion opened this issue Jun 23, 2020 · 0 comments
Open
37 of 49 tasks

Tracking: "continuous" upper boundary of comparables. #14

SingleAccretion opened this issue Jun 23, 2020 · 0 comments
Labels
Tracking Work items related to the addition of new APIs or other improvements

Comments

@SingleAccretion
Copy link
Owner

SingleAccretion commented Jun 23, 2020

Definition

  • IEquatable<T>: implicit implementation.
  • Equals: value semantics.
  • GetHashCode: value semantics.
  • ToString.
  • Type: never throws, returns a backing field.
public BoundaryType Type { get; }
  • Value: never throws, returns a backing field.
public T Value { get; }
  • Implicit conversions to/from UpperBoundary<T, DefaultValueComparer<T>>:
public static implicit operator UpperBoundary<T>(UpperBoundary<T, DefaultValueComparer<T>> boundary);
public static implicit operator UpperBoundary<T, DefaultValueComparer<T>>(UpperBoundary<T> boundary);

Implementation

  • Equals
  • GetHashCode
  • ToString
  • Type
  • Value
  • Implicit conversions to/from UpperBoundary<T, DefaultValueComparer<T>>

Tests

  • With System.Double as a type argument:
    • Equals
    • GetHashCode
    • ToString
    • Type
    • Value
    • Implicit conversions to/from UpperBoundary<T, DefaultValueComparer<T>>
  • With System.Int32 as a type argument:
    • Equals
    • GetHashCode
    • ToString
    • Type
    • Value
    • Implicit conversions to/from UpperBoundary<T, DefaultValueComparer<T>>
  • With custom struct as a type argument:
    • Equals
    • GetHashCode
    • ToString
    • Type
    • Value
    • Implicit conversions to/from UpperBoundary<T, DefaultValueComparer<T>>
  • With custom class as a type argument:
    • Equals
    • GetHashCode
    • ToString
    • Type
    • Value
    • Implicit conversions to/from UpperBoundary<T, DefaultValueComparer<T>>

XML documentation

  • Equals
  • GetHashCode
  • ToString
  • Type
  • Value
  • Implicit conversions to/from UpperBoundary<T, DefaultValueComparer<T>>

Proper documentation

  • Equals
  • GetHashCode
  • ToString
  • Type
  • Value
  • Implicit conversions to/from UpperBoundary<T, DefaultValueComparer<T>>
@SingleAccretion SingleAccretion added the Tracking Work items related to the addition of new APIs or other improvements label Jun 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Tracking Work items related to the addition of new APIs or other improvements
Projects
None yet
Development

No branches or pull requests

1 participant