Online Resources for Web Developers and Professionals - BETA

  search

Exam : MCPD - Microsoft .NET Framework 2.0 - Windows Application Development Foundation.

MethodBase.IsFamily Property

Gets a value indicating whether access to this method is restricted to members of the class and members of its derived classes.

See detail in MSDN Library.

Exam related question:

You work as the application developer at abc .com. To get information on a
specific method named myMethod, you use Reflection. You need to find out if
myMethod can be accessed from a derived class.
Which of the following properties should you call from the myMethod class?

A. Call the IsAssembly property.
B. Call the IsVirtual property.
C. Call the IsStatic property.
D. Call the IsFamily property.

Answer: D

Explanation:


Explanation: The IsFamily property determines whether the method is accessible
only to the class and descendant classes.
IsAssembly determines accessibility from within the assembly.
IsVirtual indicates whether the method is virtual.
IsStatic indicates whether the method is static.

References:


No reference found
Prev 1  2  3  4  5  6  7  8  9  10  11  Next

Exam related books