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" lower boundary of comparables. #13

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

Tracking: "continuous" lower boundary of comparables. #13

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 LowerBoundary<T, DefaultValueComparer<T>>:
public static implicit operator LowerBoundary<T>(LowerBoundary<T, DefaultValueComparer<T>> boundary);
public static implicit operator LowerBoundary<T, DefaultValueComparer<T>>(LowerBoundary<T> boundary);

Implementation

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

Tests

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

XML documentation

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

Proper documentation

  • Equals
  • GetHashCode
  • ToString
  • Type
  • Value
  • Implicit conversions to/from LowerBoundary<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