¡@

Home 

c# Programming Glossary: serializableattribute

Event Signature in .NET — Using a Strong Typed 'Sender'?

http://stackoverflow.com/questions/1046016/event-signature-in-net-using-a-strong-typed-sender

as follows First define a StrongTypedEventHandler SerializableAttribute public delegate void StrongTypedEventHandler TSender TEventArgs.. class PublisherEventArgs EventArgs ... SerializableAttribute public delegate void StrongTypedEventHandler TSender TEventArgs.. Inherits EventArgs ' ... ' ... End Class SerializableAttribute _ Public Delegate Sub StrongTypedEventHandler Of TSender TEventArgs..

Does adding [Serializable] to the class have any performance implications?

http://stackoverflow.com/questions/1402903/does-adding-serializable-to-the-class-have-any-performance-implications

don't do any serialization on that particular class the SerializableAttribute constructor will never be called hence it won't cause any performance..

Serialization breaks in .NET 4.5

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

a few fields both base and inherited class are marked with SerializableAttribute . We get an exception on the client side of Web service saying..

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

share improve this question When you use the SerializableAttribute attribute you are putting an attribute on a field at compile..

How do attribute classes work?

http://stackoverflow.com/questions/2676603/how-do-attribute-classes-work

instantiated that it is applied to E.g. if I apply the SerializableAttribute class to a MyData class and I instantiate 5 MyData instances.. access the class they are associated with How does a SerializableAttribute class access the class it is applied to so that it can serialize.. that it can serialize it's data Does it have some sort of SerializableAttribute.ThisIsTheInstanceIAmAppliedTo property Or does it work in the..

When should i use [Serializable] in C#? [closed]

http://stackoverflow.com/questions/5877808/when-should-i-use-serializable-in-c

user specific information across applications. Apply the SerializableAttribute attribute to a type to indicate that instances of this type.. that instances of this type can be serialized. Apply the SerializableAttribute attribute even if the class also implements the ISerializable.. public and private fields in a type that are marked by the SerializableAttribute are serialized by default unless the type implements the ISerializable..

How to check if an object is serializable in C#

http://stackoverflow.com/questions/81674/how-to-check-if-an-object-is-serializable-in-c-sharp

obj is ISerializable Attribute.IsDefined typeof T typeof SerializableAttribute Or even better just get the type of the object and then use..