Live Help (Start Chat)
Interview Questions and Answer
Options:
a. The partial method MUST return 'void'
b. Parameters can be 'output parameters'
c. The partial method is always public
d. None of the above
Reveal Answer
Options:
a. public static class A { public static string M(this string data) { return "something"; } }
b. public static class A { public string M(this string data) { return "something"; } }
c. public class A { public static string M(this string data) { return "something"; } }
d. public class A { public string M(this string data) { return "something"; } }
Reveal Answer
Options:
a. Anonymous types have property names which carry more information, for tuples you don't have this.
b. Tuples have property names which carry more information, for anonymous you don't have this. c.
c. You can't use anonymous types as return values and parameters though and you can with tuples.
d. 1 and 3
e. You can't use tuples as return values and parameters though and you can with tuples.
f. 3 and 5
Reveal Answer
Bestdotnet google plus