Perhaps you are thinking about the syntax of a new object initializer in C # 3.0. It looks like this:
var foo = new Foo { Bar = 1, Fizz = "hello" };
So, giving us a new instance of Foo, the โBarโ property, initialized to 1, and the โFizzโ property for โhelloโ.
, "=" , , . , , Foo, :
var foo2 = new Foo { foo1.Bar, foo1.Fizz };
, . p1, p2 p3, , :
var foo = new Foo { p1, p2, p3 };
, - , , - , , .