Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 11
1)What is Reflection in C# ? Reflection provides objects (of type Type) that describe assemblies, modules and types. You can use reflection to dynamically create an instance of a type, bind the type to an existing object, or get the type from an existing object and invoke its methods or access its fields and properties. If you are using attributes in your code, reflection enables you to access them. For more information, see Attributes. 2)Reflection Overview : Reflection is useful in the following situations: - When you have to access attributes in your program's metadata. - For examining and instantiating types in an assembly. - For building new types at runtime. Use classes in System.Reflection.Emit. - For performing late binding, accessing methods on types created at run time. See the topic Dynamically Loading and Using Types.
26th Feb 2017, 7:17 PM
Hassan Amr
Hassan Amr - avatar