I'm writing an application that references an in house library, and I need to make a method call from the library, back into the application. I cannot "Add A Reference" because this would end in circular dependencies. How, therefore, do I reference this method from the library?
This is a very common scenario in .NET programming. For example, a button control has no clue what code should run when a user clicks it.
Use a delegate or event.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.