Is the method syntax correct?

Abdullah Alshibily 0 Reputation points
2024-04-02T18:04:09.3733333+00:00

The method syntax listed in the test question at the end of the page is incorrect because it has a semicolon at the end. Methods in C# do not end with a semicolon. The correct syntax for the method should be:

void ConvertCurrency(){}

References:

Azure Azure Training
{count} votes

2 answers

Sort by: Most helpful
  1. Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
    2024-04-02T19:43:19.97+00:00

    you are correct. you should feedback on the page to report the defect.

    0 comments No comments

  2. Michael Taylor 60,161 Reputation points
    2024-04-02T19:45:48.5533333+00:00

    Use the feedback link at the bottom of the training to report the issue. We don't manage the documentation for test questions on this site.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.