Examveda

The correct way to apply the custom attribute called Employer which receives two arguments – name of the employee and employeeid is?

A. Custom attribute can be applied to an assembly

B. [assembly : Employer("Ankit",employeeid.one)]

C.

[ Employer("Ankit",  employeeid.second)] class employee
{
}

D. All of the mentioned

Answer: Option D


Join The Discussion

Related Questions on File Handling and Input Output in C Sharp