What is a formatter?

Answer Posted / rajeshree

A formatter is used to determine the serialization format
for objectobjects. All formatters expose an interface
called the IFormatter interface. Two formatters inherit
from the IFormatter interface and are provided as part of
the .NET framework. These are the Binary formatter and the
SOAP formatter.

The Binary Formatter
The Binary formatter provides binary encoding for compact
serialization either for storage or for socket-based
network streams. The BinaryFormatter class is generally not
appropriate when data is meant to be passed through a
firewall.

The SOAP Formatter
The SOAP formatter provides formatting that can be used to
enable objects to be serialized using the SOAP protocol.
The Soap Formatter class is primarily used for
serialization through firewalls or among diverse systems.

Other Formatters
The .NET framework also includes the abstract FORMATTERS
class that can be used as a base class for custom
formatters. This class inherits from the IFormatter
interface.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are the requirements to enable remote components to interact each other?

707


How do you implement distributed applications in .net?

671


What are the security features in .net remoting?

725


Explain the Flow of remoting?

756


What are static assemblies and dynamic assemblies. Differences between them?

835






What is asynchronous programming?

734


What is the Difference between CAO and SAO in Remoting.

722


What is Remoting?

792


What is objref object in remoting?

894


What is fundamental of published or precreated objects in remoting?

765


what is Client-activated object in remoting?

746


What are dynamic assemblies?

740


What are the different types of channels used by .net remoting?

698


How can we call methods in remoting asynchronously?

702


What are the ways to renew lifetime leases of objects?

765