About reflection

Reflection is the process in which we are accessing the information of assemblies and types defined, access type and data member values from class object instances at run time. In programming we can use Reflection to view the assembly information of an object such as events, properties, methods and fields. It mechanism in which all the project objects can interrogate with each other and discover information at run time. Reflection helps to define modules and new types invoked during run time and it is used in applications such as type browsers for selecting and viewing the information about types , compilers to construct symbol tables, and remote applications and serializing applications for accessing data and its persistence.

Related resources for reflection
  • Example of Aspect Oriented Paradigm with DispatchProxy Class 10/23/2024 5:25:01 AM. This article explores how to implement cross-cutting concerns in .NET using the DispatchProxy class. It demonstrates dynamic proxy creation for logging and other concerns, highlighting the benefits of
  • Using Attributes and Metadata in C# 1210/21/2024 5:38:45 AM. Ziggy Rafiq demonstrates how to use attributes and metadata in C# 12 including improvements in parameter types, reflection capabilities, and best practices for maintaining self-documenting code.
  • POCO to Dictionary Conversion Techniques in C#9/16/2024 5:02:08 AM. This article explores five methods for converting a C# POCO to a dictionary using reflection, LINQ, JSON libraries, and ExpandoObject, comparing their performance through Benchmark.NET to find the bes
  • Singleton Design Pattern: Detailed Explanation and Practical Examples7/24/2024 6:52:58 AM. The Singleton Design Pattern ensures a class has only one instance and provides global access to it. Implementations include Basic Singleton, Thread-Safe Singleton with synchronization, Double-Checked
  • Reflection In .NET6/19/2024 9:34:31 AM. Explore .NET Reflection, a powerful API for runtime type introspection in .NET Framework. Learn about key classes like System.Reflection.Assembly and System.Type, essential for dynamic type loading an
  • Understanding Reflection in C# 5/28/2024 5:50:06 AM. Reflection in C# allows runtime inspection and interaction with object types and members, enabling dynamic invocation, type inspection, and metadata access. It's powerful for development tools and
  • Reflecting Data in .NET Classes-Part III: From Windows Forms5/27/2024 11:59:12 AM. Reflecting Data in .NET Classes-Part III: From Windows Forms" explores advanced techniques for dynamically accessing and displaying data in .NET applications using Windows Forms. This part focuse
  • Reflecting Data to .NET Classes: Part II5/27/2024 11:58:38 AM. This article continue the series of Reflecting Data to .NET Classes. In the first article, we discussed the concept “Reflecting Data”. The techniques behind it were also explained and demonstrated. Th
  • How to Unload an Assembly Loaded Dynamically Using Reflection5/17/2024 10:37:44 AM. Learn how to unload an assembly that was dynamically loaded using reflection in .NET. This guide covers essential steps, including using AppDomain for isolation, managing memory efficiently, and pract
  • Dynamic Objects And Alternatives To Reflection5/17/2024 10:22:34 AM. The CodexMicroORM open-source project on GitHub includes several features to help you create fast, concise .NET deliverables. One such feature is implemented in the Performance. cs file and enables dy
  • Dynamically Call a Function in C#5/16/2024 5:52:41 AM. In this article, we will learn how to dynamically call a function in C# using reflection and delegates. By leveraging reflection, you can discover and invoke methods at runtime based on their names an
  • Reflection and Attributes in C#5/8/2024 10:16:45 AM. Reflection in C# allows examining and manipulating types, methods, and other members at runtime. Attributes provide metadata to annotate code elements, aiding in customization and dynamic behavior. To
  • Late Binding With Reflection4/25/2024 11:30:37 AM. Component based technology has done great things for software development, allowing reuse and leading to better-written code that separates subjects and entities into distinct components.
  • Getting Assembly Metadata at Runtime4/23/2024 8:22:02 AM. Retrieving assembly metadata at runtime in .NET involves using reflection, and accessing attributes like AssemblyVersion or custom ones. This dynamic analysis enables discovering types, members, and o
  • Assembly Browser: Browsing a .NET Assembly4/22/2024 9:28:25 AM. Learn to create EXE and DLL files using MASM in Visual Studio. Configure project settings, write assembly code, debug, and test applications. Explore the power of assembly language for faster executio
  • .NET Reverse Engineering: Part 34/19/2024 10:37:22 AM. In this article, we shall be confronted with the rest of the implementation in the context of CIL programming as such, how to build and consume DLL file components using the MSIL programming opcodes i
  • Filterable DataGridView using Linq and reflections4/19/2024 10:29:32 AM. Create a dynamic DataGridView in C# with filter capabilities using Linq and reflection. Manipulate data efficiently, enhance user experience, and utilize object-oriented programming for flexible data
  • What is Reflection In C#2/20/2024 6:02:24 AM. Introduction to reflection: Reflection is a powerful feature in C# that allows developers to inspect and manipulate types, methods, properties, and other elements of code dynamically at runtime. It en
  • Learn about Reflection in C#2/13/2024 6:39:35 AM. Reflection is a powerful feature in C# that enables you to inspect and interact with types, assemblies, and objects at runtime. It provides a way to dynamically discover and use information about type
  • Dynamically Sorting Object At Runtime Using Reflection C#12/6/2023 9:20:08 AM. Dynamic sorting of objects at runtime using reflection in C# involves leveraging the power of reflection to examine object properties and sort them based on specific criteria without having to write s
  • Reading properties of an object in C#11/26/2023 5:47:50 AM. This article explores two ways to read the properties of an object in C# without knowing its type at compile time: reflection and dynamic keyword. Reflection involves inspecting and manipulating metad
  • How to Use Custom Attributes in C#10/10/2023 10:34:10 AM. Custom attributes in C# allow developers to annotate code elements with metadata for improved runtime behavior and information retrieval. This practical guide explores the creation, implementation, an
  • Using MockingContext: A Flexible IServiceProvider Implementation in C#10/3/2023 5:43:56 AM. Explore the MockingContext class: a custom implementation of the IServiceProvider interface in C#. Learn how this class provides an efficient way to automatically instantiate or mock services on-the-f
  • C# Reflection With Code Example9/21/2023 10:21:08 AM. In this article, I will discuss about C# Reflection with a code example.
  • Reflection And Late Binding In C#9/20/2023 10:47:02 AM. With this article, I am trying to explain the reflection concept and its real-time uses in projects. In this article, reflection and late binding in C# provide the flexibility to work with types and o
  • Boosting Up The Reflection Performance In C#9/18/2023 9:36:25 AM. Reflection is a way of obtaining metadata information about the types used in applications, which helps you describing the types, modules or assemblies at runtime. This is an extremely useful feature
  • How to Access a Private Member of a Class From Other Class8/21/2023 12:11:23 PM. This topic pertains to object-oriented programming and addresses methods for accessing private members (variables and methods) of a class from a different class. In many programming languages, private
  • Generate SQL Statements With Objects, Attributes and Reflection8/21/2023 7:14:45 AM. Create a SQL Command with SQL Statement and Parameters dynamically.
  • Generate Python Wrapper For C# Methods Using Reflection8/17/2023 9:11:19 AM. In this article, we will generate a Python wrapper around C# methods using reflection methods of .NET framework.
  • Setting Enum's Through Reflection8/17/2023 7:08:33 AM. This article show to solve the problem of how to set an enum type in a dynamically loaded DLL.
  • Populating a Generic Data List with Generic method8/17/2023 5:56:35 AM. This article describes how to use a Generic List as a data object and how to fill it with a generic method.
  • Attributes In Practice - Building A Payment Terminal2/2/2023 10:50:11 AM. In this article, you will learn about Attributes In Practice.
  • What Is Reflection Or "In Reflection We Trust"2/2/2023 10:49:30 AM. In this article, you will learn about reflection and its usage in practice.
  • Introduction To Reflection API5/30/2022 5:46:16 AM. The reflection API represents, or reflects the classes, interfaces, and objects in the current java virtual machine
  • Reflection and Reflection.Emit in C# 4/25/2022 11:06:10 AM. In this article I will explain you about Reflection and Reflection.Emit in C#.
  • Dynamically Loading an assembly at Runtime and calling its methods4/6/2022 11:22:31 AM. This article explains how to load an assembly dynamically and call its method.
  • ThunderboltIoc - .Net Dependency Injection Without Reflection!1/19/2022 4:30:40 AM. Introduction and documentation for the new ThunderboltIoc framework which achieves dependency injection in .Net without reflection.
  • Deep Copy of Object in C#11/25/2021 10:43:54 AM. In this article, we can create deep copy of an object with the help of Serialization and Reflection.
  • Dynamic Building and Execution of Assembly Using CodeDome & Reflection3/25/2021 5:34:22 AM. This article shows how to enter code, compile it , execute it and apart from that access code and data member from the main or other referenced assembly during runtime.
  • Reflection in .NET: Part 12/12/2021 10:25:25 AM. This article explains Reflection in .NET and the concepts and use with demo sample programs.
  • Custom Attributes in .NET2/12/2021 10:01:26 AM. In this article we will see how to attach metadata to a class using custom attributes and access it at runtime using reflection.
  • Understanding Process, Application Domain And Assemblies11/10/2020 7:11:31 AM. We usually come across these terms: Process, Application Domain or App Domain, Assemblies. It is good to have a basic knowledge of these terms and how each one is related to each other.
  • A Walkthrough of C# Attributes8/21/2020 10:45:07 AM. In this article, we’re going to explore the basics of attributes, what are the common ones, how to create and read attributes
  • Simple Plugin Architecture Using Reflection With WPF Projects3/2/2020 1:15:29 PM. In this article we will see simple plugin architecture using reflection.
  • QueryString to Object (Custom Properties)9/25/2019 12:37:36 AM. In this article I have described how to handle a QueryString with minimal effort using the features of C#, reflection and generics.
  • Consuming WCF Service Via Reflection9/25/2019 12:04:00 AM. This article provides a sample of consuming a WCF service on the go using reflection instead of adding references to our project or application.
  • Introduction To Reflection In Java9/18/2019 4:24:53 AM. In this article we discuss reflection in Java.
  • Kotlin - Annotations and Reflection8/11/2019 10:57:52 AM. Kotlin annotations are used to attach metadata to classes, interface, parameters at compile time. In this article, you will learn about the Annotations and Reflection in Kotlin.
  • CodeDom Calculator - Evaluating C# Math Expressions Dynamically5/13/2019 4:12:57 AM. This article describes how to use CodeDom and Reflection to Create a Calculator that can evaluate simple and complex math expressions on the fly.
  • Reflection in .NET4/1/2019 1:33:18 PM. Reflection is the mechanism of discovering class information solely at run time. Let's see how and where to use Reflection in C# and .NET.
  • Working with DropDownList and ListBox Controls in ASP.NET3/25/2019 5:03:11 AM. In this article we'll see how to use DropDownList and ListBox Web controls to display data in various formats.
  • A Generic Data Access Component using Factory Pattern3/7/2019 12:29:01 AM. This article shows to utilize the System.Activator class and a factory pattern to create the concrete provider classes.
  • Using Reflection with C#2/26/2019 11:48:09 AM. This article explains discovery of types at runtime using .NET Reflection in C#. This article will also explain late binding in C# that is related to .NET reflection.
  • Using Attributes With C# .NET2/21/2019 1:30:26 AM. Attributes are like adjectives, which are used for metadata annotation that can be applied to a given type, assembly, module, method and so on. The .NET framework stipulates two types of attribute imp
  • Filling Data objects using Reflection9/5/2018 3:36:21 AM. This article describes filling a Data class using a generic method. Reflection is used to find property of any passed class dynamically and assign the value.
  • Introduction to JDBC8/2/2016 3:01:27 AM. In this video we will Understanding Introduction to JDBC.Java Database Connectivity (JDBC) is an application programming interface (API) for the programming language Java, which defines how a client m
  • Using Reflection to Get Enum Description and Value5/31/2015 1:28:39 PM. In this article you will see how to handle enum values with descriptions.
  • Introduction to Building a Plug-In Architecture Using C#1/29/2015 3:47:08 AM. In this article we'll take another look at how we can use the state pattern to build a plug-in architecture that will allow us to change the behavior of our application by placing differnt plug-ins into a folder.
  • Creating Reflection Effect in WPF - Expression Blend1/2/2015 11:39:56 PM. In this article you will learn how to create a reflection effect in WPF - Expression Blend.
  • Collection Framework and Reflection in C#10/21/2013 5:12:00 PM. This article defines the collection and reflection of C# in Detail.
  • Image Reflection in Windows Store App1/7/2013 8:47:00 AM. To day we will talk about the reflection effect in windows store application. This effect is implemented through Render Transform and Transform Group tag in Xaml page applied on the target control where you want to make effect.
  • Creating an Excel Spreadsheet Programmatically using VB.NET12/1/2012 4:12:29 AM. The Interoperability services make it very easy to work with COM Capable Applications such as Word and Excel. This article reveals using Excel from a managed application. Excel is the spreadsheet component of Microsoft Office 2000.
  • Implement Concrete Factory Design Pattern using Reflection in VB.NET11/10/2012 12:42:30 AM. Reflection is used to dynamically create an instance of a type, bind the type to an existing object, or get the type from an existing object. In this example, we implement Concrete Factory Pattern using Reflection to fetch records from MS-Access and MS-SQL Database.
  • Using C# and COM Interoperability to Extract from a UML tool into a Microsoft Word Document9/30/2012 4:08:11 AM. This article allows you to read the classes contained inside of WithClass 2000 into a Word Document using COM Interoperability for Word and COM Interoperability for WithClass and presents your classes in a kind of report.
  • Using Reflection and With Class2000 to view the .NET System.Drawing library Part I9/29/2012 7:16:34 AM. Using the power of .NET and the power of COM InterOperability through WithClass 2000, you can view the System.Drawing library in a rough UML diagram.
  • Image Reflection in WPF7/3/2012 12:39:54 AM. This article describes how to get Image Reflection effect in WPF.
  • Dynamic XML Creation Using .NET Reflection to Access an Object5/20/2012 6:50:53 AM. This article talks about how to create XML using .NET reflection to access an object.
  • Dynamic XML Creation Using Reflection5/20/2012 5:37:01 AM. Reflection is mechanism of discovering class information solely at run time. Using reflection you would see all the properties, functions, events, constructor of an object.
  • May Reflection be With you Always5/19/2012 12:24:57 AM. So let me present the example where we can use Reflection and Reflection.Emit to do something interesting.
  • Reflection - Invoking a Member Method5/15/2012 4:55:13 PM. In this article we will see how to invoke a member method by using reflection.
  • Using a Combobox to Select Colors5/15/2012 4:19:41 PM. This is a short article on how to use a combo box control to display and select all the named colors.
  • Reflection - Calling a property at runtime9/28/2011 1:52:05 PM. In this article, we will learn how we can call an object's property at runtime using Reflection. We will also learn how we can use LINQ effectively with reflection.
  • Creating a Plugin enabled Application : Part 1 of 25/15/2011 12:23:11 PM. In this article I am trying to show how to create a plugin enabled application using .Net Reflection.
  • Generalized Class for Tombstone2/3/2011 1:19:20 AM. This is the simplest way for handling the Tombstone using Reflection and Custom attributes. We can use this code for tombstoning your application.
  • Reflection of Images Using Expression Blend 41/28/2011 11:43:40 AM. Here is an article on reflected images using Microsoft Expression Blend in WPF.
  • Reflection Comparer in C#1/2/2011 11:28:33 PM. In this article you will learn how to use Reflection Comparer in C#.
  • Using reflection and attributes12/13/2010 11:52:56 AM. Reflection provides objects (of type Type) that encapsulate 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.
  • Reflection in C#4/22/2010 1:16:27 AM. In this article I would like to explain how to load an assembly dynamically and display its forms with the help of Reflection.
  • Drawing Other Graphics Shapes by Applying Cap and Dashed Line Styles in GDI+ 2/8/2010 11:39:25 PM. In this article I will explain about Drawing Other Graphics Shapes by Applying Cap and Dashed Line Styles in GDI+.
  • Runtime Type Information (Reflection) in C#. 12/5/2009 10:55:48 AM. In this article I will explain you about Runtime Type Information (Reflection) in C#.
  • Read Asp.net Request Param and Session dynamically into properties10/4/2007 2:19:22 AM. This Article shows how you can use Attributes and Reflection to dynamically populate property with value from param, session or context without writing any addition code. I have used this technique in past and I hope you will also find it useful.
  • Extendable/optional function using reflection8/29/2007 11:54:12 PM. This article explains how to use reflection to provide extendable/optional function to the user.
  • Using Reflection to dynamically expose your Business Logic through a Webservice.1/30/2007 4:38:21 AM. Many people are using web services to communicate with their business logic. There are many advantages of this approach with some issues. This article will show you how you can avoid those issues, while still enjoying all the benefits of using web services.
  • Attributes in C#3/9/2006 3:30:36 PM. In this artilcle, we will see what the attributes are and why should we use the attributes in our applications?
  • Extending Your Working Environment in Visual Studio - Advanced2/15/2006 1:38:37 AM. In my previous article, you learned about how to create wizards and some simple objects such as DTE, Solutions, Project and Project Item. These objects help us to customize our Visual Studio working environment.
  • Lengthy Operations on Single Thread in .NET Applications1/28/2006 1:18:44 AM. In this article I discuss how the lenghty operations can be handled in a .NET application. I also discuss how the stack trace can be examined to find any specific methods.
  • XML Generator1/25/2006 12:21:35 AM. This article is about advance use of reflection package in Csharp.
  • Debugging Techniques in C#1/3/2006 6:22:15 AM. Debugging GUI applications for me mostly consists of printing out debug statements in the form of a dialog box with some text.
  • Working with Reflection12/30/2005 4:03:11 AM. This article is about the use of reflection package in Csharp. Through Reflection we can get Information about the class.
  • Introduction to GDI+ Transformations 12/26/2005 2:05:18 AM. A transformation is a process that changes graphics objects from one state to another. Rotation, scaling, reflection, translation, and shearing are some examples of transformation. Transformations can be applied not only to graphics shapes, curves, and images, but even to image colors.
  • Sokoban Pro Game in C#12/24/2005 6:20:33 AM. Sokoban Pro is a modern version of the classic Sokoban puzzle game. The game rules are extremely simple, yet the game is very challenging and addictive. The rule of the game is to move all the boxes in the right places. You can only push a box, not pull.
  • JIT Coding12/21/2005 7:24:17 AM. One not so well known feature of .NET platform is possibility to invoke compiler and practically create code and assembly from running instance of application. It is possible to do that in two ways. First one is a bit simpler and involves namespaces System.CodeDom and System.CodeDom.Compiler, second one is more efficient and utilizes namespace System.Reflection.Emit. Since there are very few examples about how to use System.CodeDom.Compiler I will start with it.
  • May Reflection be with you, always12/20/2005 1:51:51 AM. So let me present the example where we can use Reflection and Reflection.Emit to do something interesting.
  • Dynamically Setting Properties of a Class from a Database12/14/2005 6:57:04 AM. This example demonstrates a powerful feature of Reflection that will allow you to dynamically set the values of a class.
  • Configuring and Invoking Dynamic Delegate using Reflection7/26/2005 7:45:03 AM. The attached source code projects shows how to configure and invoke dynamic delegates using Reflection.
Source Code: Graphics Programming with GDI+
Graphics Programming with GDI+ is the .NET developer's guide to writing graphics appl...
Download