¡@

Home 

c# Programming Glossary: serializable

JavaScriptSerializer.Deserialize - how to change field names

http://stackoverflow.com/questions/1100191/javascriptserializer-deserialize-how-to-change-field-names

detail_level low I have the following C# object for it Serializable public class DataObject XmlElement user_id public int UserId..

How to detect the language of a string?

http://stackoverflow.com/questions/1192768/how-to-detect-the-language-of-a-string

base class that represents a typical Google JSON response Serializable public class JSONResponse public string responseDetails null.. Then a Translation object that inherits from this class Serializable public class Translation JSONResponse public TranslationResponseData.. has a TranslationResponseData object that looks like this Serializable public class TranslationResponseData public string translatedText..

Parse JSON in C#

http://stackoverflow.com/questions/1212344/parse-json-in-c-sharp

obj.GetType ms.Close return obj Deserialise from JSON Serializable public class GoogleSearchResults public GoogleSearchResults..

How do you do a deep copy an object in .Net (C# specifically)?

http://stackoverflow.com/questions/129389/how-do-you-do-a-deep-copy-an-object-in-net-c-specifically

ms Notes Your class MUST be marked as Serializable in order for this to work. Your source file must include the..

Serialize a nullable int

http://stackoverflow.com/questions/244953/serialize-a-nullable-int

the IsNullable property from the XmlElement attribute. Serializable System.Xml.Serialization.XmlRoot Score Namespace http mycomp.com..

Why XML-Serializable class need a parameterless constructor

http://stackoverflow.com/questions/267724/why-xml-serializable-class-need-a-parameterless-constructor

XML Serializable class need a parameterless constructor I'm writing code to..

Get the property, as a string, from an Expression<Func<TModel,TProperty>>

http://stackoverflow.com/questions/2789504/get-the-property-as-a-string-from-an-expressionfunctmodel-tproperty

property on the object that you are filtering. typeparam Serializable public class SortOption TModel TProperty ISerializable where.. Serializable public class SortOption TModel TProperty ISerializable where TModel class summary Convenience constructor. summary.. public int Priority get set #region Implementation of ISerializable summary This is the constructor called when deserializing a..

What is the best way to build XML in C# code? [closed]

http://stackoverflow.com/questions/284324/what-is-the-best-way-to-build-xml-in-c-sharp-code

data writer.WriteEndElement Finally via XmlSerializer Serializable public class Foo XmlAttribute public string Bar get set public.. setter unless you do it all yourself by implementing IXmlSerializable in which case you haven't gained much by using XmlSerializer..

How to Deserialize XML document

http://stackoverflow.com/questions/364253/how-to-deserialize-xml-document

Make Honda Make Model Accord Model Car Cars I have this Serializable public class Car System.Xml.Serialization.XmlElementAttribute.. a few liberties with the naming . Here are the classes Serializable public class Car System.Xml.Serialization.XmlElement StockNumber.. Model public string Model get set Serializable System.Xml.Serialization.XmlRoot CarCollection public class..

Performance Tests of Serializations used by WCF Bindings

http://stackoverflow.com/questions/3790728/performance-tests-of-serializations-used-by-wcf-bindings

Player .GetProperties prop prop.Name return meta.Compile Serializable DataContract public partial class Game DataMember public bool.. DataMember public Nullable DateTime TimeStarted get set Serializable DataContract public class Player DataMember public string Name..

parse and execute JS by C#

http://stackoverflow.com/questions/4744105/parse-and-execute-js-by-c-sharp

null Marshal.ReleaseComObject _dispatch _dispatch null Serializable public class ScriptException Exception public ScriptException..

When to use struct in C#?

http://stackoverflow.com/questions/521298/when-to-use-struct-in-c

struct Entry Tkey TValue use Reflector to see the code Serializable StructLayout LayoutKind.Sequential public struct Enumerator..

The purpose of delegates [duplicate]

http://stackoverflow.com/questions/687626/the-purpose-of-delegates

event. e An System.EventArgs that contains no event data. Serializable ComVisible true public delegate void EventHandler object sender..

Serializing private member data

http://stackoverflow.com/questions/802711/serializing-private-member-data

public Guid Id get private set I have marked the class Serializable and I have implemented the ISerializable interface. Below is.. marked the class Serializable and I have implemented the ISerializable interface. Below is the code I'm using to serialize my object... xw obj Alternatively you can implement IXmlSerializable and do everything yourself but this works with XmlSerializer..

Why catch and rethrow Exception in C#?

http://stackoverflow.com/questions/881473/why-catch-and-rethrow-exception-in-c

http www.codeproject.com KB cs datatransferobject.aspx on Serializable DTO's. The article includes this piece of code public static..

How to update textbox on GUI from another thread in C#

http://stackoverflow.com/questions/1136399/how-to-update-textbox-on-gui-from-another-thread-in-c-sharp

Type Topic in Assembly is not marked as serializable . Ill post my whole code bellow will try to keep it simple as..

XML Serialize generic list of serializable objects

http://stackoverflow.com/questions/1212742/xml-serialize-generic-list-of-serializable-objects

Serialize generic list of serializable objects Can I serialize a generic list of serializable objects.. of serializable objects Can I serialize a generic list of serializable objects without having to specify their type. Something like.. intention behind the broken code below List ISerializable serializableList new List ISerializable XmlSerializer xmlSerializer new XmlSerializer..

How to store int[] array in application Settings

http://stackoverflow.com/questions/1766610/how-to-store-int-array-in-application-settings

I've found is that I have to create a class that is serializable that wraps my array or List and then I will be able to use that..

Serializing anonymous delegates in C#

http://stackoverflow.com/questions/321827/serializing-anonymous-delegates-in-c-sharp

is because the compiler generated class is not marked as serializable. Example namespace Example Serializable class Other public.. Culture neutral PublicKeyToken null' is not marked as serializable. Listing 2 This is similar to the issue of trying to serialize..

Comparison of XSD Code Generators

http://stackoverflow.com/questions/386155/comparison-of-xsd-code-generators

comments from the xsd comments Must generate fully serializable code. Should be able to generate resuable basetypes when generating..

WPF/C#: Where should I be saving user preferences files?

http://stackoverflow.com/questions/396229/wpf-c-where-should-i-be-saving-user-preferences-files

can't do this directly because Dictionary objects are not serializable. However you can create your own serializable dictionary pretty.. are not serializable. However you can create your own serializable dictionary pretty easily. Paul Welzer had an excellent example..

How to serialize an Exception object in C#?

http://stackoverflow.com/questions/486460/how-to-serialize-an-exception-object-in-c

all the relevant information about an Exception and is XML serializable. Serializable public class Error public DateTime TimeStamp get..

Entity Framework And Business Objects

http://stackoverflow.com/questions/5202780/entity-framework-and-business-objects

expose the properties i need but still keep the objects serializable Also what advantages does this have over LinqToSql c# entity..

Deep cloning objects in C#

http://stackoverflow.com/questions/78536/deep-cloning-objects-in-c-sharp

As mentioned elsewhere it does require your objects to be serializable. using System using System.IO using System.Runtime.Serialization.. throw new ArgumentException The type must be serializable. source Don't serialize a null object simply return the default..

Is there a much better way to create deep and shallow clones in C#?

http://stackoverflow.com/questions/8025890/is-there-a-much-better-way-to-create-deep-and-shallow-clones-in-c

throw new ArgumentException The type must be serializable. source if Object.ReferenceEquals source null return default..

Serializing private member data

http://stackoverflow.com/questions/802711/serializing-private-member-data

at least if its even possible c# .net xml serialization serializable share improve this question You could use DataContractSerializer..

What is the point of the ISerializable interface?

http://stackoverflow.com/questions/810974/what-is-the-point-of-the-iserializable-interface

have that interface so I am unclear on its purpose. c# serializable share improve this question ISerializable is used to provide..

Is there a serializable generic Key/Value pair class in .NET?

http://stackoverflow.com/questions/83232/is-there-a-serializable-generic-key-value-pair-class-in-net

there a serializable generic Key Value pair class in .NET I'm looking for a key..

How do I map XML to C# objects

http://stackoverflow.com/questions/87621/how-do-i-map-xml-to-c-sharp-objects

share improve this question You can generate serializable C# classes from a schema xsd using xsd.exe xsd.exe dependency1.xsd..

C# arrays , Getting a sub-array from an existing array

http://stackoverflow.com/questions/943635/c-sharp-arrays-getting-a-sub-array-from-an-existing-array

T bf.Deserialize ms This does require the objects to be serializable Serializable or ISerializable though. You could easily substitute..