Click here to Skip to main content
15,912,977 members
Home / Discussions / C#
   

C#

 
GeneralRe: Easiest way to parse a data packet Pin
Tom Wright22-Nov-05 6:10
Tom Wright22-Nov-05 6:10 
GeneralRe: Easiest way to parse a data packet Pin
KaptinKrunch23-Nov-05 6:53
KaptinKrunch23-Nov-05 6:53 
QuestionI have string[] names = {"name1", "name2"} ... Pin
Anthony Mushrow21-Nov-05 10:58
professionalAnthony Mushrow21-Nov-05 10:58 
AnswerRe: I have string[] names = {"name1", "name2"} ... Pin
enjoycrack21-Nov-05 12:37
enjoycrack21-Nov-05 12:37 
AnswerRe: I have string[] names = {"name1", "name2"} ... Pin
André Ziegler21-Nov-05 12:39
André Ziegler21-Nov-05 12:39 
QuestionUnmanaged Thread Unsafe Library Pin
BenjaminWalker21-Nov-05 10:49
BenjaminWalker21-Nov-05 10:49 
Questiona common serialization question Pin
mattraffel21-Nov-05 10:43
mattraffel21-Nov-05 10:43 
AnswerRe: a common serialization question Pin
Tom Wright21-Nov-05 10:58
Tom Wright21-Nov-05 10:58 
If you are referring to xmlserialzation then according to the MSDN:

Preventing Serialization with the XmlIgnoreAttribute
There might be situations when a public property or field does not need to be serialized. For example, a field or property could be used to contain metadata. In such cases, apply the XmlIgnoreAttribute to the field or property and the XmlSerializer will skip over it.

Other wise try this from the MSDN:

A class often contains fields that should not be serialized. For example, assume a class stores a thread ID in a member variable. When the class is deserialized, the thread stored the ID for when the class was serialized might no longer be running; so serializing this value does not make sense. You can prevent member variables from being serialized by marking them with the NonSerialized attribute as follows.

[Serializable]<br />
public class MyObject <br />
{<br />
  public int n1;<br />
  [NonSerialized] public int n2;<br />
  public String str;<br />
}
If possible, make an object that could contain security-sensitive data nonserializable. If the object must be serialized, apply the NonSerialized attribute to specific fields that store sensitive data. If you do not exclude these fields from serialization, be aware that the data they store will be exposed to any code that has permission to serialize. For more information about writing secure serialization code, see Security and Serialization.



Tom Wright
tawright915@yahoo.com
GeneralRe: a common serialization question Pin
mattraffel21-Nov-05 11:03
mattraffel21-Nov-05 11:03 
GeneralRe: a common serialization question Pin
Curtis Schlak.21-Nov-05 16:42
Curtis Schlak.21-Nov-05 16:42 
Questionquestion about interfaces Pin
savage_21-Nov-05 10:02
savage_21-Nov-05 10:02 
AnswerRe: question about interfaces Pin
Steve Maier21-Nov-05 10:46
professionalSteve Maier21-Nov-05 10:46 
GeneralRe: question about interfaces Pin
savage_21-Nov-05 11:55
savage_21-Nov-05 11:55 
QuestionProject Configuration Pin
monrobot1321-Nov-05 9:34
monrobot1321-Nov-05 9:34 
QuestionMemory used by an object Pin
Joe Woodbury21-Nov-05 8:52
professionalJoe Woodbury21-Nov-05 8:52 
QuestionHEL.... P HEL....p p Pin
7mam21-Nov-05 8:41
7mam21-Nov-05 8:41 
AnswerRe: HEL.... P HEL....p p Pin
KaptinKrunch21-Nov-05 8:54
KaptinKrunch21-Nov-05 8:54 
GeneralRe: HEL.... P HEL....p p Pin
7mam21-Nov-05 10:24
7mam21-Nov-05 10:24 
GeneralRe: HEL.... P HEL....p p Pin
Tom Wright21-Nov-05 11:02
Tom Wright21-Nov-05 11:02 
QuestionXML serialization-dynamic value retrieval Pin
subbucs21-Nov-05 6:56
subbucs21-Nov-05 6:56 
QuestionCan't access commandline args - Permissions problem Pin
CarolAnnLove21-Nov-05 6:46
CarolAnnLove21-Nov-05 6:46 
AnswerRe: Can't access commandline args - Permissions problem Pin
KaptinKrunch21-Nov-05 8:58
KaptinKrunch21-Nov-05 8:58 
QuestionHelp needed for Array Class Pin
Nuray21-Nov-05 3:58
Nuray21-Nov-05 3:58 
AnswerRe: Help needed for Array Class Pin
S. Senthil Kumar21-Nov-05 4:22
S. Senthil Kumar21-Nov-05 4:22 
GeneralRe: Help needed for Array Class Pin
Nuray21-Nov-05 4:25
Nuray21-Nov-05 4:25 

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.