Uno.CodeGen icon indicating copy to clipboard operation
Uno.CodeGen copied to clipboard

It should be possible to compare the builder with its entity

Open carldebilly opened this issue 5 years ago • 0 comments

Feature request

Current behavior

Take this code:

var a = A.Default;
var b = a.WithName("myName");
var c = a.WithName("myName");
if(b == c || a == b || a == c)
{
  doSomething(); // Never called!
}

It's never called because b if of type A.Builder, not A. It's hard to diagnose this problem by reading at the code.

Expected behavior

That comparaison with the builder should works directly.

carldebilly avatar Aug 31 '19 16:08 carldebilly