Specifying properties when initialising
- by maxp
void Foo()
{
bool ID = "test";
var testctrl = new Control() {ID = (ID**=="abc"?ID:ID**)};
}
Is it possible to get the value of ID** in the code above? The problem is they both have the same property names.
Please ignore the fact the specific ID assignment is pointless, im just using it as an example.