.Net Basic Interview Questions and Answers - 1
Attributes are a mechanism for adding metadata such as compiler instructions and other data about the data, methods and classes.
Attributes are inserted in to the metadata and are visible through ILDASM.
Reflection is the process by which a program can read its own metadata from another program.
Name some of attribute targets?
What is the purpose of the attribute usage?
Attribute declaration is done by using attribute usage attribute.
The primary purpose of attribute usage is to indicate which types of program elements that can be applied to.
List out the uses of reflection?
Reflection is generally used for any of four tasks.
Viewing Meta Data – Used by tools and utilities that wish to display Meta data.
Type discovery – Used to examine the types in an assembly and interact with or instantiate those types. This can be useful in creating custom scripts.
Late binding to methods and properties – It allows the programmer to invoke properties and methods on objects dynamically instantiated based on type discovery. It is also known as dynamic invocation.
Creating types at Run Time – It is used to create new types at runtime and then to use those types to perform tasks.
Computer Quiz Questions 2024-2025 Pdf More
Computer Knowledge Questions for IBPS Specialist Officer 2024-2025 More
IBPS PO Computer Awareness Questions 2024-2025 Pdf Free Download More
7000+ Computer Awareness Questions for Bank PO Exams 2024-2025 Pdf More
Analog, Digital Electronics Questions and Answers More
1000+ General English Questions & Answers for Competitive Exams More
1000+ Electronics and Communication Engineering Interview Questions Pdf More
Electronics and Communication Engineering MCQ Questions with Answers More
1000+ Strength of Materials Viva Questions and Answers More
7000+ SSC MTS History Previous Year Question Papers Pdf Download More