There is a very similar question to what I intend to ask here but the answers in that question diverted to Java world instead of C# world and also none of the answers over there talk about the micro-optimization of performance, if any.
is there any difference in performance, even a tiny one, in the following two statement blocks?
var someObject = new UpdateCommand
{
Name = "StackOverflow",
Age = 20,
IsPrimaryWebsite = true,
MobileNumber = "12345678"
};
Mediator.Send(someObject);
and
Mediator.Send(new UpdateCommand
{
Name = "StackOverflow",
Age = 20,
IsPrimaryWebsite = true,
MobileNumber = "12345678"
});
I assume the latter is automatically converted to the former by the compiler but want to verify it.