tagged [serialization]

Can a PHP script unserialize a Storable file created with Perl?

Can a PHP script unserialize a Storable file created with Perl? Can a PHP script unserialize a Storable file created with Perl?

6 Mar at 16:49

Convert serialized C# DateTime to JS Date object

Convert serialized C# DateTime to JS Date object How can I convert that date format `/Date(1302589032000+0400)/` to JS Date object?

9 Apr at 19:4

Does ServiceStack JsonSerializer support ISerializable

Does ServiceStack JsonSerializer support ISerializable Can `ServiceStack.Text.JsonSerializer` to work with class that implements `ISerializable` taking public properties? Thank you

How does BinaryFormatter.Deserialize create new objects?

How does BinaryFormatter.Deserialize create new objects? When `BinaryFormatter` deserializes a stream into objects, it appears to create new objects without calling constructors. How is it doing this?...

Test for Optional Field when using .NET Custom Serialization

Test for Optional Field when using .NET Custom Serialization Given a class like this one: ``` [Serializable] public class MyClass { string name; string address; public MyClass(SerializationInfo ...

What's the difference between using the Serializable attribute & implementing ISerializable?

What's the difference between using the Serializable attribute & implementing ISerializable? What's the difference between using the `Serializable` attribute and implementing the `ISerializable` inter...

form serialize javascript (no framework)

form serialize javascript (no framework) Wondering is there a function in javascript without jquery or any framework that allows me to serialize the form and access the serialized version?

28 Jan at 20:0

How do I add a attribute to a XmlArray element (XML Serialization)?

How do I add a attribute to a XmlArray element (XML Serialization)? How do I add a attribute to a XmlArray element ( not to XmlArrayItem ) while serializing the object?

7 Jan at 07:45

How do you serialize a string as CDATA using XmlSerializer?

How do you serialize a string as CDATA using XmlSerializer? Is it possible via an attribute of some sort to serialize a string as CDATA using the .Net XmlSerializer?

4 Sep at 19:50

Why do I need "field:" in my attribute declaration "[field:NonSerialized]"?

Why do I need "field:" in my attribute declaration "[field:NonSerialized]"? I can't find "field" listed as a C# keyword anywhere. Does anyone know the background on this?

What is the meaning of serialization in programming languages?

What is the meaning of serialization in programming languages? What is the meaning of serialization concept in programming languages? when we use `Serializable` attribute above a class, what is the me...

24 Apr at 08:47

Difference between using XMLRoot/XMLElement and using Serializable() attributes (in c#)

Difference between using XMLRoot/XMLElement and using Serializable() attributes (in c#) what is Difference between using XMLRoot/XMLElement and using Serializable() attributes? how do i know when to u...

20 Nov at 07:53

Use System.Text.Json to deserialize properties with private setters

Use System.Text.Json to deserialize properties with private setters Is there a way to use with object that contains private setters properties, and fill those properties? (like does)

8 Jun at 20:46

How do you do a deep copy of an object in .NET?

How do you do a deep copy of an object in .NET? I want a true deep copy. In Java, this was easy, but how do you do it in C#?

4 Dec at 06:5

Serializing and Deserializing Expression Trees in C#

Serializing and Deserializing Expression Trees in C# Is there a way to Deserialize Expressions in C#, I would like to store Expressions in a Database and load them at run time.

5 Apr at 06:15

Saving an Object (Data persistence)

Saving an Object (Data persistence) I've created an object like this: I would like to save this object. How can I do that?

How can I convert a DataTable to an XML file in C#?

How can I convert a DataTable to an XML file in C#? I want to convert a DataTable to an XML file in C#. How can I do this?

How to serialise Exception to Json

How to serialise Exception to Json C# Exceptions are ISerialisable so they can't also be DataContracts so I can't use JsonDataContractSerializer. What are alternatives to serialising Exceptions to JSO...

12 Feb at 08:44

Using XML decorations to specify default values during de-serialization

Using XML decorations to specify default values during de-serialization I have a problem deserializing some XML; the XML supplied by a third party is quite verbose, so if there is no value set for an ...

How can I transform XML into a List<string> or String[]?

How can I transform XML into a List or String[]? How can I transform the following XML into a `List` or `String[]`:

5 Jun at 16:17

Can you specify format for XmlSerialization of a datetime?

Can you specify format for XmlSerialization of a datetime? I need to serialize / deserialize a datetime into yyyyMMdd format for an XML file. Is there an attribute / workaround I can use for this?

13 Jul at 10:59

Biggest differences of Thrift vs Protocol Buffers?

Biggest differences of Thrift vs Protocol Buffers? What are the biggest pros and cons of [Apache Thrift](http://incubator.apache.org/thrift/) vs [Google's Protocol Buffers](http://code.google.com/apis...

Difference between DataMember and JsonProperty in webapi2

Difference between DataMember and JsonProperty in webapi2 What is the difference between DataMember and JsonProperty when using it in webapi2? Any performance differences? What is preferred to use? Th...

14 Dec at 00:11

Changing property names for serializing

Changing property names for serializing My class has a property 'PropertyA', I want this to appear as 'PropertyB' in a JSON object when it's serialized. Is there any sort of attribute I can use?

17 Sep at 09:3

Run default serialization logic from JsonConverter

Run default serialization logic from JsonConverter I have a `JsonConverter` that, depending on an instance specific flag, needs to either - - How can the default Json.NET serialization logic be ran fr...

26 Jan at 16:51