Out of curiosity...what happens when we call a method that returns some value but we don\'t handle/use it? And we also expect that sometimes this returned value could be rea
I'm certain that this doesn't cause any problems, otherwise C# wouldn't be a very reliable language.
I'm guessing the compiler isn't smart enough to optimize this. What most likely happens is the ordinary logic inside the function call is executed, e.g. creating the object and allocating memory for it. If a reference type is returned but not captured, garbage collection will free up the memory again.
As others have stated, from a design view ignoring the return value does indicate a problem and most likely you should be looking at the return value.