Error : Seems like Console.Writeline don't see enought argument
Hello. I am beginner on C#. This is an exercice to understand class legacy. On the two last Console.Writeline, its seems like Console.Writeline don't see enought argument (CA2241) so when i run the program i have an exeption. But i don't understand why. Can you help me?
7 Replies
where exactly is the error?
Btw you should use
(int, double, double)
instead of Tuple<int, double, double>
The two last Console.Writeline
You have a typo
{0]
should be {0}
although you should use $interpolation insteadString interpolation is the preferred way of building strings in C#. It is easier to read than concatenation.
For example:
can be written as:
thanks i haven't seen it
It makes putting stuff inside strings much easier
okay its a nice idea