¡@

Home 

c# Programming Glossary: serializationinfo

Serialization breaks in .NET 4.5

http://stackoverflow.com/questions/14689305/serialization-breaks-in-net-4-5

is used to deserialize values. public DeviceSiteTypeInfo SerializationInfo info StreamingContext context parent fields ID int info.GetValue.. param name context context param public void GetObjectData SerializationInfo info StreamingContext context parent fields info.AddValue _id..

Comparing structs to null [duplicate]

http://stackoverflow.com/questions/2022425/comparing-structs-to-null

#region ISerializable Members public void GetObjectData SerializationInfo info StreamingContext context throw new NotImplementedException..

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

http://stackoverflow.com/questions/2365152/whats-the-difference-between-using-the-serializable-attribute-implementing-is

and by providing a constructor of the form MyFoo SerializationInfo info StreamingContext context there would be a finer degree..

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

deserializing a SortOption. summary protected SortOption SerializationInfo info StreamingContext context IsAscending info.GetBoolean IsAscending.. Populates a see cref T System.Runtime.Serialization.SerializationInfo with the data needed to serialize the target object. summary.. name info The see cref T System.Runtime.Serialization.SerializationInfo to populate with data. param param name context The destination..

Dynamic Object Serialization

http://stackoverflow.com/questions/3055461/dynamic-object-serialization

Dictionary string object public Entity protected Entity SerializationInfo info StreamingContext ctx string fieldName string.Empty object.. value return true void ISerializable.GetObjectData SerializationInfo info StreamingContext context foreach var kvp in this.values..

Serializing anonymous delegates in C#

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

public void GetObjectData object obj SerializationInfo info StreamingContext context foreach FieldInfo f in obj.GetType.. f.GetValue obj public object SetObjectData object obj SerializationInfo info StreamingContext context ISurrogateSelector selector..

How does BinaryFormatter.Deserialize create new objects?

http://stackoverflow.com/questions/3500429/how-does-binaryformatter-deserialize-create-new-objects

and then call a particular constructor with SerializationInfo and StreamingContext fields to deserialise said constructor..

How to rethrow the inner exception of a TargetInvocationException without losing the stack trace

http://stackoverflow.com/questions/4555599/how-to-rethrow-the-inner-exception-of-a-targetinvocationexception-without-losing

var mgr new ObjectManager null ctx var si new SerializationInfo e.GetType new FormatterConverter e.GetObjectData si ctx mgr.RegisterObject..

parse and execute JS by C#

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

base message innerException protected ScriptException SerializationInfo info StreamingContext context base info context public string..

C# JSON Serialization of Dictionary into {key:value, …} instead of {key:key, value:value, …}

http://stackoverflow.com/questions/4861138/c-sharp-json-serialization-of-dictionary-into-keyvalue-instead-of-keyk

K V public MyJsonDictionary protected MyJsonDictionary SerializationInfo info StreamingContext context throw new NotImplementedException.. new NotImplementedException public void GetObjectData SerializationInfo info StreamingContext context foreach K key in dict.Keys info.AddValue..

XML Serialize dynamic object

http://stackoverflow.com/questions/7501846/xml-serialize-dynamic-object

binder.Name value return true public void GetObjectData SerializationInfo info StreamingContext context foreach var kvp in dictionary..

Make ASP.NET WCF convert dictionary to JSON, omitting “Key” & “Value” tags

http://stackoverflow.com/questions/7590088/make-asp-net-wcf-convert-dictionary-to-json-omitting-key-value-tags

new Dictionary TKey TValue public AjaxDictionary SerializationInfo info StreamingContext context _Dictionary new Dictionary TKey.. _Dictionary.Add key value public void GetObjectData SerializationInfo info StreamingContext context foreach TKey key in _Dictionary.Keys..