Skip to content

Cast (converting) possibility #2

@iskandarem

Description

@iskandarem

Think and implement a cast possibility for equatable, so that users could cast castable types.

for example if we have:
class A {}
class B : A {}
Equatable must cast B to A and then check for equality.
Something like:
(A)B

or
double a; -> when they are objects at first
int b;
a is equal to b
like
class X { public object a; }
class Y { public object b; }

The control should be given to the user so they can decide whether to use this during equality checks or not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions