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

C#

 
QuestionUpdate() method in TableAdapter Pin
hotnreddyfreddy23-Jan-07 15:33
hotnreddyfreddy23-Jan-07 15:33 
AnswerRe: Update() method in TableAdapter Pin
Christian Graus23-Jan-07 16:04
protectorChristian Graus23-Jan-07 16:04 
GeneralRe: Update() method in TableAdapter Pin
hotnreddyfreddy24-Jan-07 5:26
hotnreddyfreddy24-Jan-07 5:26 
QuestionXml.File Pin
missfath23-Jan-07 15:18
missfath23-Jan-07 15:18 
AnswerRe: Xml.File Pin
Christian Graus23-Jan-07 16:05
protectorChristian Graus23-Jan-07 16:05 
AnswerRe: Xml.File Pin
gauthee23-Jan-07 21:06
gauthee23-Jan-07 21:06 
GeneralRe: Xml.File Pin
missfath28-Jan-07 14:39
missfath28-Jan-07 14:39 
QuestionUsing Attributes to implement "callbacks" Pin
urbane.tiger23-Jan-07 13:56
urbane.tiger23-Jan-07 13:56 
I was wondering how much use people make of attributes to implement "callback" like processing a'la OnDeserialized etc in NET2.0 serialization process.

I tried using OnDeserialized but it was happening too soon for my purposes, ie at the end of the DeSerialize process just before returning to the invoking method. What I needed was my [OnDeserialized] method be invoked after the object returned by Deserialize was put into the target. So I implemented a new trivial attribute [PostLoad] ("Load" being my term for Deserialization, and "Save" for Serialization).

The tricky bit was where to search for methods with the PostLoad attribute - I didn't like the idea of searching the whole assembly ? - but because the object graph was implemented as cascaded class, I only had to search down the nested class tree.

I also realised I could retain the list of methods I find, so the search is only performed once anyway.



AnswerRe: Using Attributes to implement "callbacks" Pin
Marc Clifton23-Jan-07 14:34
mvaMarc Clifton23-Jan-07 14:34 
GeneralRe: Using Attributes to implement "callbacks" Pin
urbane.tiger28-Jan-07 14:08
urbane.tiger28-Jan-07 14:08 
QuestionGood ideas for beginner programming?? Pin
TrooperIronMan23-Jan-07 13:35
TrooperIronMan23-Jan-07 13:35 
AnswerRe: Good ideas for beginner programming?? Pin
urbane.tiger23-Jan-07 14:04
urbane.tiger23-Jan-07 14:04 
AnswerRe: Good ideas for beginner programming?? Pin
Marc Clifton23-Jan-07 14:36
mvaMarc Clifton23-Jan-07 14:36 
GeneralRe: Good ideas for beginner programming?? Pin
TrooperIronMan24-Jan-07 1:38
TrooperIronMan24-Jan-07 1:38 
Questioncircular references in controls? Pin
amatbrewer23-Jan-07 11:31
amatbrewer23-Jan-07 11:31 
AnswerRe: circular references in controls? Pin
Stefan Troschuetz23-Jan-07 11:52
Stefan Troschuetz23-Jan-07 11:52 
GeneralRe: circular references in controls? Pin
Luc Pattyn23-Jan-07 14:00
sitebuilderLuc Pattyn23-Jan-07 14:00 
GeneralRe: circular references in controls? Pin
aSarafian23-Jan-07 23:05
aSarafian23-Jan-07 23:05 
AnswerRe: circular references in controls? Pin
jayart24-Jan-07 1:28
jayart24-Jan-07 1:28 
QuestionRight Solution in VS.Net? Pin
harjin23-Jan-07 11:31
harjin23-Jan-07 11:31 
AnswerRe: Right Solution in VS.Net? Pin
Christian Graus23-Jan-07 12:41
protectorChristian Graus23-Jan-07 12:41 
QuestionSystem.Timers.Timer Pin
gigo2k623-Jan-07 10:00
gigo2k623-Jan-07 10:00 
AnswerRe: System.Timers.Timer Pin
Christian Graus23-Jan-07 10:29
protectorChristian Graus23-Jan-07 10:29 
GeneralRe: System.Timers.Timer Pin
gigo2k623-Jan-07 10:34
gigo2k623-Jan-07 10:34 
GeneralRe: System.Timers.Timer Pin
Christian Graus23-Jan-07 10:38
protectorChristian Graus23-Jan-07 10: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.