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 is Remoting?

636


Explain Singleton design pattern of Remoting?

553


what is Client-activated object in remoting?

582


Which one is better WebService and Remoting ?

614


When do we use delegates in your remoting applications?

515






Define singleton activation mode in .net remoting?

516


What are the ways to configure remoting objects before client can use them?

596


How can you configure a .net remoting object via xml file?

550


I am developing a project.Title is "Remote Demonstator".Using asp.net and C# Abstact: While administrator moving mouse and clicking on any link in the webpage that action will be performed in Server machine as well as in client machine.The client initially have to log-in and make a phone call to the admin. This is my project. How can i get this? I can create a website but this concept i have to implement in my website.How can i achive this? How to get client system control and how my mouse movings can be visible to client? I request all to please give me a basic idea or some hint. Advance Thanks.

1977


What are the threading types?

528


What are the advantage of remoting over web services?

494


Types of compatabilities and explain them ?

2031


How can we call methods in remoting asynchronously?

514


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

531


What are different types of assemblies?

572