Uno.CodeGen
Uno.CodeGen copied to clipboard
It should be possible to compare the builder with its entity
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.