문제

I am creating a 3 tier architecture web application, and I want to use extension methods. In which layer should I place the extension methods?

Thanks.

도움이 되었습니까?

해결책

You place extension methods at any layer that uses them.

Extension methods can be extending base UI classes, BLL classes and/or DAL classes.

You place them near where they are used - if they are to be used in several places, you place them in a utility or core class/assembly.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top