Click here to Skip to main content
15,899,562 members
Home / Discussions / C#
   

C#

 
Generalloader lock error [modified] Pin
rao raja26-Feb-08 0:45
rao raja26-Feb-08 0:45 
GeneralRe: loader lock error Pin
leppie6-Mar-08 2:33
leppie6-Mar-08 2:33 
Generalproblem with windows service Pin
Prabhat00326-Feb-08 0:45
Prabhat00326-Feb-08 0:45 
GeneralRe: problem with windows service Pin
Vikram A Punathambekar26-Feb-08 1:27
Vikram A Punathambekar26-Feb-08 1:27 
GeneralRe: problem with windows service Pin
Prabhat00326-Feb-08 1:34
Prabhat00326-Feb-08 1:34 
GeneralRe: problem with windows service Pin
Pete O'Hanlon26-Feb-08 9:56
mvePete O'Hanlon26-Feb-08 9:56 
GeneralRe: problem with windows service Pin
Prabhat00326-Feb-08 18:51
Prabhat00326-Feb-08 18:51 
GeneralIssue regarding Serialization [modified] Pin
free_soul42426-Feb-08 0:38
free_soul42426-Feb-08 0:38 
Hi, I am facing an issue in serialization. I have a class that implement ISerializable interface. Actually I want to make my object to travel on the network. If I don’t implemetn the ISerializable interfce and use the following code I can get the same functionality.
public static Object GetSerializedObject (Object pObject)
{
            try
            {
                BinaryFormatter objBinaryFormatter = new BinaryFormatter();
                MemoryStream objMemoryStream = new MemoryStream();
                objBinaryFormatter = new BinaryFormatter();
                objBinaryFormatter.Serialize(objMemoryStream, pObject);
                objMemoryStream.Position = 0;
                Object objReturnedObject = (object)objBinaryFormatter.Deserialize(objMemoryStream);
                objMemoryStream.Flush();
                objMemoryStream.Close();
                objBinaryFormatter = null;
                return objReturnedObject;

            }
            catch (Exception objException)
            {

                throw;
            }
}

Please guide me which is the best practice that I should follow. Is there any difference in the approches. There is no constrant to serialize some attribute of the class, the whole object should be serialized.
Regards,

modified on Tuesday, February 26, 2008 8:11 AM

GeneralRe: Issue regarding Serialization Pin
Le centriste26-Feb-08 4:58
Le centriste26-Feb-08 4:58 
QuestionWriting an Image in Excel Cell Comment using C# Pin
Neeraj Kr26-Feb-08 0:28
Neeraj Kr26-Feb-08 0:28 
QuestionExecuting an EXE Pin
M. J. Jaya Chitra26-Feb-08 0:26
M. J. Jaya Chitra26-Feb-08 0:26 
GeneralRe: Executing an EXE Pin
Luc Pattyn26-Feb-08 0:29
sitebuilderLuc Pattyn26-Feb-08 0:29 
QuestionDraw Text in C# using OpenGL Pin
Yasir Nawazish Ali26-Feb-08 0:18
Yasir Nawazish Ali26-Feb-08 0:18 
GeneralRe: Draw Text in C# using OpenGL Pin
Christoph Menge26-Feb-08 1:05
Christoph Menge26-Feb-08 1:05 
GeneralRe: Draw Text in C# using OpenGL Pin
Yasir Nawazish Ali26-Feb-08 17:15
Yasir Nawazish Ali26-Feb-08 17:15 
GeneralRe: Draw Text in C# using OpenGL Pin
Christoph Menge3-Mar-08 1:04
Christoph Menge3-Mar-08 1:04 
GeneralRe: Draw Text in C# using OpenGL Pin
Paul Harsent27-Apr-10 4:52
Paul Harsent27-Apr-10 4:52 
Questionhow to get the network packet size? Pin
Mahmood Abbasi26-Feb-08 0:09
Mahmood Abbasi26-Feb-08 0:09 
GeneralDirectX Sound device Pin
Eduard Keilholz25-Feb-08 22:29
Eduard Keilholz25-Feb-08 22:29 
GeneralExecuting Multiple command on MS_DOS Pin
Sanjitrajbanshi25-Feb-08 21:57
Sanjitrajbanshi25-Feb-08 21:57 
GeneralRe: Executing Multiple command on MS_DOS Pin
Rajesh R Subramanian25-Feb-08 22:21
professionalRajesh R Subramanian25-Feb-08 22:21 
Questionquery for temporary table Pin
Sonia Gupta25-Feb-08 21:16
Sonia Gupta25-Feb-08 21:16 
GeneralRe: query for temporary table Pin
Xmen Real 25-Feb-08 21:25
professional Xmen Real 25-Feb-08 21:25 
QuestionRe: query for temporary table Pin
Sonia Gupta25-Feb-08 21:37
Sonia Gupta25-Feb-08 21:37 
GeneralRe: query for temporary table Pin
N a v a n e e t h25-Feb-08 21:45
N a v a n e e t h25-Feb-08 21:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.