Click here to Skip to main content
15,908,931 members
Home / Discussions / C#
   

C#

 
Answersample code Pin
jaraldumary22-Dec-08 0:47
jaraldumary22-Dec-08 0:47 
AnswerRe: How to set the Pagesettings in Reportviwer Pin
Tom Deketelaere22-Dec-08 1:19
professionalTom Deketelaere22-Dec-08 1:19 
GeneralRe: How to set the Pagesettings in Reportviwer Pin
Exelioindia22-Dec-08 1:53
Exelioindia22-Dec-08 1:53 
GeneralRe: How to set the Pagesettings in Reportviwer Pin
Tom Deketelaere22-Dec-08 2:43
professionalTom Deketelaere22-Dec-08 2:43 
QuestionSocket Connections Pin
Rick van Woudenberg22-Dec-08 0:02
Rick van Woudenberg22-Dec-08 0:02 
AnswerRe: Socket Connections Pin
Mark Salsbery22-Dec-08 7:52
Mark Salsbery22-Dec-08 7:52 
QuestionRuntime Report Formating.... Pin
zeeShan anSari21-Dec-08 23:40
zeeShan anSari21-Dec-08 23:40 
QuestionMark field in child class as NonSerialized Pin
Dust Signs21-Dec-08 23:34
Dust Signs21-Dec-08 23:34 
Hi,

as the title indicates I want to mark a field in a child class with a NonSerialized attribute so that it won't be serialized. Simply put:

[Serializable]
class Parent
{
  protected int SomeField;
}

[Serializable]
class Child : Parent
{
  [NonSerialized]
  protected int SomeField;
}


Of course this does not work, but also the new keyword does not help me because it only hides the field and does not overwrite it. Is there any other way to achieve the desired effect?

Regards
Dust Signs

The number you dialed is imaginary. Please turn your phone by 90 degrees and try again

AnswerRe: Mark field in child class as NonSerialized Pin
deyaert21-Dec-08 23:42
deyaert21-Dec-08 23:42 
GeneralRe: Mark field in child class as NonSerialized Pin
Dust Signs21-Dec-08 23:51
Dust Signs21-Dec-08 23:51 
GeneralRe: Mark field in child class as NonSerialized Pin
deyaert22-Dec-08 0:31
deyaert22-Dec-08 0:31 
GeneralRe: Mark field in child class as NonSerialized Pin
Dust Signs22-Dec-08 0:39
Dust Signs22-Dec-08 0:39 
GeneralRe: Mark field in child class as NonSerialized Pin
deyaert22-Dec-08 0:58
deyaert22-Dec-08 0:58 
GeneralRe: Mark field in child class as NonSerialized Pin
Dust Signs22-Dec-08 1:01
Dust Signs22-Dec-08 1:01 
GeneralRe: Mark field in child class as NonSerialized Pin
deyaert22-Dec-08 1:02
deyaert22-Dec-08 1:02 
QuestionHow can I update rows in a table using OLEDB in C#? Pin
dliviu21-Dec-08 22:39
dliviu21-Dec-08 22:39 
AnswerRe: How can I update rows in a table using OLEDB in C#? Pin
Christian Graus21-Dec-08 22:45
protectorChristian Graus21-Dec-08 22:45 
GeneralRe: How can I update rows in a table using OLEDB in C#? Pin
dliviu21-Dec-08 22:55
dliviu21-Dec-08 22:55 
GeneralRe: How can I update rows in a table using OLEDB in C#? Pin
Christian Graus21-Dec-08 23:04
protectorChristian Graus21-Dec-08 23:04 
QuestionException of file encryption using c# Pin
cat ang21-Dec-08 21:04
cat ang21-Dec-08 21:04 
AnswerRe: Exception of file encryption using c# Pin
Christian Graus21-Dec-08 22:42
protectorChristian Graus21-Dec-08 22:42 
GeneralRe: Exception of file encryption using c# Pin
cat ang22-Dec-08 2:16
cat ang22-Dec-08 2:16 
GeneralRe: Exception of file encryption using c# Pin
Colin Angus Mackay22-Dec-08 2:48
Colin Angus Mackay22-Dec-08 2:48 
AnswerRe: Exception of file encryption using c# Pin
Colin Angus Mackay22-Dec-08 2:46
Colin Angus Mackay22-Dec-08 2:46 
GeneralRe: Exception of file encryption using c# Pin
cat ang22-Dec-08 4:03
cat ang22-Dec-08 4:03 

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.