tagged [serialization]
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?
- Modified
- 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
- Modified
- 25 Mar at 08:49
Serialize an object to string
Serialize an object to string I have the following method to save an Object to a file: ``` // Save an object out to the disk public static void SerializeObject(this T toSerialize, String filename) { ...
- Modified
- 12 Mar at 17:32
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...
- Modified
- 2 Jun at 11:5
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?...
- Modified
- 17 Aug at 07:58
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 ...
- Modified
- 26 Aug at 08:33
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?
- Modified
- 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?
- Modified
- 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?
- Modified
- 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?
- Modified
- 7 Jan at 17:7
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...
- Modified
- 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...
- Modified
- 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)
- Modified
- 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#?
- Modified
- 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.
- Modified
- 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?
- Modified
- 31 Jul at 07:10
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?
- Modified
- 10 Mar at 12:53
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...
- Modified
- 12 Feb at 08:44
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[]`:
- Modified
- 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?
- Modified
- 13 Jul at 10:59
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 ...
- Modified
- 16 Aug at 10:19
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...
- Modified
- 4 Nov at 00:10
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...
- Modified
- 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?
- Modified
- 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...
- Modified
- 26 Jan at 16:51