Wednesday, June 17, 2015

Seams in C#


Seams : it is place where you can alter behavior in a program without editing in that place

Seam Enabling points :It is place where you can make the decision to use one behavior or another

In the above snippet, suppose we do not want to save any thing to data base or alter the save behavior. this place is called the seam

Seams types :
  1. Pre-processing seams (enabling point is Pre-processors)
  2. Link seams(enabling point is the classpath where you can change the assembly )
  3. Object seams(enabling point is the class constructor)




No comments:

Post a Comment