Click here to Skip to main content
15,902,894 members
Home / Discussions / C#
   

C#

 
GeneralRe: Preventing automated registering Pin
Christian Graus3-Feb-05 14:48
protectorChristian Graus3-Feb-05 14:48 
GeneralRe: Preventing automated registering Pin
Constance3-Feb-05 22:54
Constance3-Feb-05 22:54 
GeneralRe: Preventing automated registering Pin
J4amieC4-Feb-05 3:50
J4amieC4-Feb-05 3:50 
GeneralRe: Preventing automated registering Pin
Christian Graus4-Feb-05 18:20
protectorChristian Graus4-Feb-05 18:20 
GeneralRepositioning windows form question... Pin
new_phoenix3-Feb-05 11:49
new_phoenix3-Feb-05 11:49 
GeneralRe: Repositioning windows form question... Pin
Heath Stewart3-Feb-05 13:21
protectorHeath Stewart3-Feb-05 13:21 
GeneralSaving print settings Pin
object883-Feb-05 10:07
object883-Feb-05 10:07 
GeneralRe: Saving print settings Pin
Heath Stewart3-Feb-05 11:14
protectorHeath Stewart3-Feb-05 11:14 
I would actually recommend saving page settings - perhaps even print settings - in the document itself if possible. This is actually a pretty common scenario.

For those types that aren't attributed with the SerializableAttribute, you need to implement ISerializationSurrogate to serialize and deserialize the object of a type for that surrogate (or write a generic one for all types, reflecting private and public fields yourself). The .NET Framework SDK has more details about this interface, though it's pretty straight forward to implement if you've ever implemented ISerializable.

To use the surrogate, when you create an instance of your IFormatter (like the BinaryFormatter), add an instance of your surrogate using IFormatter.SurrogateSelector.AddSurrogate to add the type (only a single type for each call, but you can use the same surrogate instance), the StreamingContext (which describes the medium to which you serialize, primarily), and the instance of your ISerializationSurrogate implementation.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
GeneralRead detailed file descriptions(tags?) in c# Pin
Liu Shuai3-Feb-05 9:59
Liu Shuai3-Feb-05 9:59 
GeneralRe: Read detailed file descriptions(tags?) in c# Pin
Heath Stewart3-Feb-05 11:26
protectorHeath Stewart3-Feb-05 11:26 
GeneralRe: Read detailed file descriptions(tags?) in c# Pin
Liu Shuai3-Feb-05 12:06
Liu Shuai3-Feb-05 12:06 
QuestionStep into C++ COM object from C# .NET web service ? Pin
CherezZaboro3-Feb-05 8:56
CherezZaboro3-Feb-05 8:56 
AnswerRe: Step into C++ COM object from C# .NET web service ? Pin
Heath Stewart3-Feb-05 9:52
protectorHeath Stewart3-Feb-05 9:52 
GeneralRe: Step into C++ COM object from C# .NET web service ? Pin
CherezZaboro3-Feb-05 10:52
CherezZaboro3-Feb-05 10:52 
GeneralRe: Step into C++ COM object from C# .NET web service ? Pin
CherezZaboro3-Feb-05 10:52
CherezZaboro3-Feb-05 10:52 
GeneralRe: Step into C++ COM object from C# .NET web service ? Pin
Heath Stewart3-Feb-05 11:05
protectorHeath Stewart3-Feb-05 11:05 
GeneralRe: Step into C++ COM object from C# .NET web service ? Pin
CherezZaboro3-Feb-05 11:29
CherezZaboro3-Feb-05 11:29 
GeneralRe: Step into C++ COM object from C# .NET web service ? Pin
Heath Stewart3-Feb-05 13:19
protectorHeath Stewart3-Feb-05 13:19 
GeneralWeb control Pin
MyThread3-Feb-05 8:21
MyThread3-Feb-05 8:21 
GeneralRe: Web control Pin
Christian Graus3-Feb-05 8:34
protectorChristian Graus3-Feb-05 8:34 
GeneralRe: Web control Pin
MyThread3-Feb-05 10:14
MyThread3-Feb-05 10:14 
GeneralRe: Web control Pin
Christian Graus3-Feb-05 10:21
protectorChristian Graus3-Feb-05 10:21 
GeneralRe: Web control Pin
Charlie Williams3-Feb-05 8:38
Charlie Williams3-Feb-05 8:38 
GeneralRe: Web control Pin
MyThread3-Feb-05 10:12
MyThread3-Feb-05 10:12 
GeneralInfragistics Button Pin
Member 12502003-Feb-05 6:32
Member 12502003-Feb-05 6:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.