serialize (1,391)


Reading a C/C++ data structure in C# from a byte array

Reading a C/C++ data structure in C# from a byte array

What would be the best way to fill a C# struct from a byte[] array where the data was from a C/C++ struct? The C struct would look something like this(my C is very rusty): typedef OldStuff{CHAR Name[8…


Can I serialize a C# Type object?

I'm trying to serialize a Type object in the following way: Type myType=typeof(StringBuilder); var serializer=new XmlSerializer(typeof(Type)); TextWriter writer=new StringWriter(); serializer.S…


c# - XML Serialization and Inherited Types

Following on from my previous question I have been working on getting my object model to serialize to XML. But I have now run into a problem(quelle surprise!). The problem I have is that I have a coll…


C#: instantiating classes from XML

What I have is a collection of classes that all implement the same interface but can be pretty wildly different under the hood. I want to have a config file control which of the classes go into the c…


asp.net - Is there a built in way in.Net AJAX to manually serialize an object to a JSON string?

I've found ScriptingJsonSerializationSection but I'm not sure how to use it. I could write a function to convert the object to a JSON string manually, but since.Net can do it on the fly with the<Sy…


XML serialization in Java?

What is the Java analogue of.NET's XML serialization?…


serialization - How to serialize a graph structure?

Flat files and relational databases give us a mechanism to serialize structured data. XML is superb for serializing un-structured tree-like data. But many problems are best represented by graphs. A th…



Reading VC++ CArchive Binary Format(or Java reading(CObArray))

Is there any clear documentation on the binary formats used to serialize the various MFC data structures? I've been able to view some of my own classes in a hex editor and use Java's ByteBuffer clas…


c# - XmlSerializer-There was an error reflecting type

Using C#.NET 2.0, I have a composite data class that does have the[Serializable] attribute on it. I am creating an XMLSerializer class and passing that into the constructor: XmlSerializer serialize…


Saving Java Object Graphs as XML file

What's the simplest-to-use techonlogy available to save an arbitrary Java object graph as an XML file(and to be able to rehydrate the objects later)?…




object json serialization example deserialize string array java and xml