Examveda

Which of these is an correct way of defining generic method?

A. name(T1, T2, ..., Tn) { /* ... */ }

B. public name { /* ... */ }

C. class name[T1, T2, ..., Tn] { /* ... */ }

D. name{T1, T2, ..., Tn} { /* ... */ }

Answer: Option B


This Question Belongs to C Sharp Programming >> Networking In C Sharp

Join The Discussion

Related Questions on Networking in C Sharp

What is the difference between TCP and UDP in networking?

A. TCP provides reliable, connection-oriented communication, while UDP provides unreliable, connectionless communication

B. TCP provides unreliable, connectionless communication, while UDP provides reliable, connection-oriented communication

C. TCP is faster than UDP

D. UDP is more secure than TCP