How should you rewrite lines 03 through 06 of the method?

You have a List object that is generated by executing the following code:

You have a method that contains the following code (line numbers are included for reference only):

You need to alter the method to use a lambda statement.
How should you rewrite lines 03 through 06 of the method?

A. Option A
B. Option B
C. Option C
D. Option D

microsoft-exams

7 thoughts on “How should you rewrite lines 03 through 06 of the method?

  1. nothing is correct , correct answer is following

    var findDepartment = departments.Exists(x => x.Equals(searchItem));

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.