Real examples of reflections

What are your best examples of using Reflection in production code?

+3
source share
10 answers

ASP.NET MVC provides an action and a controller to invoke from a URL. Routing as a whole.

+3
source

Most recently, I had to use reflection to load an assembly (to examine its public types) only from the assembly path.

+2
source

Linq To Sql... ORM .NET 2.0.

, :

  • CRUD

, ( ActiveRecord, DAL).

... .

+2

SQL, ,

"Chevrolet" .

+1

- Python O/R mapper, .

, (, ). , .

, Python . , , , API , . , Python: CPython API Python COM API, makepy, Jython java API IronPython .Net API.

+1

, Kofax Express, OCR PDF . OCR, , , OCR . , OCR . , OCR; dll OCR.

+1
0
0

DAL - . POCO SQL.

0

Inside the factory, we use reflection to return the implementation of the "Dummy" interface or the real (connected to the database) interface implementation based on the class specified in the properties file (in Java).

0
source

Source: https://habr.com/ru/post/1708440/


All Articles