For example I have struct:
public struct Foo {
int value;
}
Is there a way to assign the value (maybe by implementing some kind of interface or smthg) directly to instance of an object skipping reference to the field? And maybe chose this field? Something like this:
Foo number = new Foo();
number = 2; // instead of - number.value = 2;