C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Interview   Jobs   Projects   Offshore Development    
Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing | Talk to Us |



My Profile

Gifts

Active Members
TodayLast 7 Days more...







Serialize a Remotable Dataset


Posted Date: 05 May 2007    Resource Type: Code Snippets    Category: ADO.NET

Posted By: Balamurali Balaji       Member Level: Diamond
Rating:     Points: 10



The following code defines the format for the dataset when required for remoting purposes. On serializing the remotable dataset to a binary file, you could see the difference.



FileStream fs = new FileStream(@"c:\authordata.txt", FileMode.Create);
pubsDataSet.RemotingFormat = SerializationFormat.Binary;

// Remove the above line, and serialize the dataset; Check the file content.

BinaryFormatter bfo = new BinaryFormatter();
bfo.Serialize(fs, pubsDataSet);
fs.Close();






Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Export dataset to a comma delimited text file
Previous Resource: Retrieve data providers currently supported by VS.NET
Return to Discussion Resource Index
Post New Resource
Category: ADO.NET


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design

masks masks masks

Contact Us    Privacy Policy    Terms Of Use