Click here to Skip to main content
15,887,350 members
Home / Discussions / C#
   

C#

 
AnswerRe: How i Can open my c# form only automatically to user when user open windows. Pin
BillWoodruff22-Nov-11 15:11
professionalBillWoodruff22-Nov-11 15:11 
QuestionKeyPress events in a console window? Pin
Member 840468922-Nov-11 1:11
Member 840468922-Nov-11 1:11 
AnswerRe: KeyPress events in a console window? Pin
PIEBALDconsult22-Nov-11 2:10
mvePIEBALDconsult22-Nov-11 2:10 
AnswerRe: KeyPress events in a console window? Pin
OriginalGriff22-Nov-11 2:14
mveOriginalGriff22-Nov-11 2:14 
GeneralRe: KeyPress events in a console window? Pin
Member 840468922-Nov-11 2:54
Member 840468922-Nov-11 2:54 
AnswerRe: KeyPress events in a console window? Pin
S Houghtelin22-Nov-11 2:23
professionalS Houghtelin22-Nov-11 2:23 
Questionwhen to use SerializationAttribute Pin
amir.dar21-Nov-11 23:46
amir.dar21-Nov-11 23:46 
AnswerRe: when to use SerializationAttribute Pin
BobJanova22-Nov-11 5:03
BobJanova22-Nov-11 5:03 
This attribute marks types as serialisable through the standard serialisation process (using a BinaryFormatter or SoapFormatter). Despite its similar appearance, the XmlSerializer uses a different pathway, and the [Serializable] attribute has no effect there (instead, use [XmlSerializable]).

Standard ([Serializable]) serialisation stores the complete internal state of the object, by serialising private fields. To be able to use it, every field within the type must itself be serialisable (either by being a CLR type or itself being marked as [Serialiazable]), because the complete state must be available to the serialiser. There is an exception to this, if you explicitly mark some fields as [NonSerializable]. In contrast, the XML serialisation can only be applied to public properties, and you need to reconstruct the internal state of the object to an equivalent state based on the value of those properties.

You should use [Serializable] and IFormatters when you want to save or transfer a complete dump of an object, and reconstruct it exactly as it was before. For example, classes which are to be passed across AppDomain or web service boundaries need to either be marshalled by reference or serialisable. You should use XML serialisation and [XmlSerializable] if you want to use XML to save or transfer a high level view of an object, and you can use the public properties to sufficiently reconstruct the target object.

The article you linked to is quite good and once you understand that the XML serialiser is a separate thing, hopefully it will help you.
QuestionMaximum number of columns for a ListView control Pin
Kalvin @ Work21-Nov-11 8:57
Kalvin @ Work21-Nov-11 8:57 
AnswerRe: Maximum number of columns for a ListView control Pin
Kalvin @ Work21-Nov-11 9:27
Kalvin @ Work21-Nov-11 9:27 
GeneralRe: Maximum number of columns for a ListView control Pin
Mark Salsbery21-Nov-11 9:34
Mark Salsbery21-Nov-11 9:34 
AnswerRe: Maximum number of columns for a ListView control Pin
Mark Salsbery21-Nov-11 9:30
Mark Salsbery21-Nov-11 9:30 
GeneralRe: Maximum number of columns for a ListView control Pin
Luc Pattyn21-Nov-11 11:48
sitebuilderLuc Pattyn21-Nov-11 11:48 
AnswerRe: Maximum number of columns for a ListView control Pin
DaveyM6921-Nov-11 12:53
professionalDaveyM6921-Nov-11 12:53 
GeneralRe: Maximum number of columns for a ListView control Pin
Dan Mos21-Nov-11 22:17
Dan Mos21-Nov-11 22:17 
AnswerRe: Maximum number of columns for a ListView control Pin
SilimSayo22-Nov-11 6:22
SilimSayo22-Nov-11 6:22 
Questioninsert Data to a MultiColumn ListView By ComboBox Items Pin
nassimnastaran21-Nov-11 4:49
nassimnastaran21-Nov-11 4:49 
AnswerRe: insert Data to a MultiColumn ListView By ComboBox Items Pin
Matt U.21-Nov-11 6:49
Matt U.21-Nov-11 6:49 
QuestionDifference in webconfig "authorization" in .net framework 1.1 and 4.0 Pin
maithilym20-Nov-11 23:50
maithilym20-Nov-11 23:50 
AnswerRe: Difference in webconfig "authorization" in .net framework 1.1 and 4.0 Pin
OriginalGriff21-Nov-11 6:21
mveOriginalGriff21-Nov-11 6:21 
GeneralRe: Difference in webconfig "authorization" in .net framework 1.1 and 4.0 Pin
maithilym21-Nov-11 17:04
maithilym21-Nov-11 17:04 
GeneralRe: Difference in webconfig "authorization" in .net framework 1.1 and 4.0 Pin
Pete O'Hanlon21-Nov-11 22:02
mvePete O'Hanlon21-Nov-11 22:02 
Questionmvc3 custom authentication provider asp.net online list Pin
samwood201120-Nov-11 23:17
samwood201120-Nov-11 23:17 
AnswerRe: mvc3 custom authentication provider asp.net online list Pin
Pete O'Hanlon21-Nov-11 0:44
mvePete O'Hanlon21-Nov-11 0:44 
QuestionTDES Pin
BAZJAK20-Nov-11 21:38
BAZJAK20-Nov-11 21:38 

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.