concept transformer in category .net

appears as: transformer, trsformers, A trsformer, trsformer, The trsformer
ASP.NET AJAX in Action

This is an excerpt from Manning's book ASP.NET AJAX in Action.

The bridge file supports the ability to transform or convert the response from the service before it reaches the caller. A few built-in transformers make this possible, including one that maps elements and tags in the response to an object. Listing 5.20 illustrates how adding a transformer to the bridge file can alter the response you get in the browser from XML to an object that’s friendlier and easier to work with.

So far, we’ve presented the evaluation of a binding as a process that synchronizes the values of two properties. But the value of the source property can be transformed to obtain the value of the target property. This is done with special functions called transformers. A transformer is a function that takes an input value and uses it to produce the output value. As you’ll see, bindings can use transformers to obtain the actual value that will be bound to the target property.

11.3.6. Playing with transformers

In general, a transformer can behave differently based on the value of two different parameters: