.net - Partial Classes across Projects -


Whether it is possible to have partial squares in projects.

For example, Project 1 has a customer class in Project 2, which is an optional module, attaching an order class and connecting to the customer class using the original customer class.

You partial keyword to split the class code between projects Can not use partial keyword is a compiler trick; The compiler will out of a single class out of those parts, so all parts of the class must be present in the same binary file. Once class is compiled, no trace of partial class is left off.

If you want to expand the existing class, you will need to get it (if it has not been sealed), or your own new organs that include classes, which you can add to the information Want to


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -