public SomePropertyClass Merge (SomePropertyClass other) { return new SomePropertyClass { VarA = this.VarA ?? other.VarA, VarB = this.VarB ?? other.VarB }; }
static void Main(string[] args) { SomePropertyClass v1 = new SomePropertyClass() { VarA = "item 1" }; SomePropertyClass v2 = new SomePropertyClass() { VarB = "item 2" }; var yo = v1.Combine(v2); }