Click here to Skip to main content
15,936,876 members
Home / Discussions / C#
   

C#

 
AnswerRe: Create a .NET dll Pin
Christian Graus7-Jan-07 22:51
protectorChristian Graus7-Jan-07 22:51 
QuestionMaskedTextBox Pin
CodeItWell6-Jan-07 1:21
CodeItWell6-Jan-07 1:21 
AnswerRe: MaskedTextBox Pin
Tyler456-Jan-07 1:30
Tyler456-Jan-07 1:30 
QuestionForcing static implementation... Pin
Shy Agam6-Jan-07 1:14
Shy Agam6-Jan-07 1:14 
AnswerRe: Forcing static implementation... Pin
Ennis Ray Lynch, Jr.6-Jan-07 8:09
Ennis Ray Lynch, Jr.6-Jan-07 8:09 
AnswerRe: Forcing static implementation... Pin
Guffa6-Jan-07 9:11
Guffa6-Jan-07 9:11 
Questiongetting the line number of a sentence (word document) Pin
hofi19856-Jan-07 1:10
hofi19856-Jan-07 1:10 
QuestionIDeserializationCallback.OnDeserialization() not called Pin
dubbaluga6-Jan-07 1:06
dubbaluga6-Jan-07 1:06 
Hi,

I'm having troubles with XML deserialization in C#. Here is my class:

[Serializable]
public class A : IDeserializationCallback
{
    public A()
    {
        m_MyString1 = "Test";
        m_MyString2 = "";
    }

    public string MyString1
    {
        get { return m_MyString1; }
        set { m_MyString1 = value; }
    }

    public string MyString2
    {
        get { return m_MyString2; }
        set { m_MyString2 = value; }
    }

    void IDeserializationCallback.OnDeserialization(Object sender)
    {
        m_MyString2 = m_MyString1 + m_MyString1;
    }

    private string m_MyString1;
    private string m_MyString2;
}


m_MyString2 is always "" in my case. Do I have to do anything else than implementing the interface to ensure that the OnDeserialization() method gets called?

Thanks in advance,
Rainer
QuestionC# High School Project Pin
makemoneyfast6-Jan-07 1:01
makemoneyfast6-Jan-07 1:01 
AnswerRe: C# High School Project Pin
Cormac M Redmond6-Jan-07 1:19
Cormac M Redmond6-Jan-07 1:19 
GeneralRe: C# High School Project Pin
makemoneyfast6-Jan-07 1:33
makemoneyfast6-Jan-07 1:33 
GeneralRe: C# High School Project Pin
User 66586-Jan-07 4:03
User 66586-Jan-07 4:03 
GeneralRe: C# High School Project Pin
makemoneyfast6-Jan-07 4:49
makemoneyfast6-Jan-07 4:49 
GeneralRe: C# High School Project Pin
Cormac M Redmond6-Jan-07 9:00
Cormac M Redmond6-Jan-07 9:00 
AnswerDefinately ambitious Pin
Ennis Ray Lynch, Jr.6-Jan-07 8:14
Ennis Ray Lynch, Jr.6-Jan-07 8:14 
GeneralRe: Definately ambitious Pin
makemoneyfast6-Jan-07 10:28
makemoneyfast6-Jan-07 10:28 
GeneralI was assumming Pin
Ennis Ray Lynch, Jr.6-Jan-07 11:20
Ennis Ray Lynch, Jr.6-Jan-07 11:20 
GeneralRe: I was assumming Pin
makemoneyfast6-Jan-07 13:06
makemoneyfast6-Jan-07 13:06 
QuestionSimple interface question...Help!! Pin
Cormac M Redmond6-Jan-07 0:42
Cormac M Redmond6-Jan-07 0:42 
AnswerRe: Simple interface question...Help!! Pin
Shy Agam6-Jan-07 1:01
Shy Agam6-Jan-07 1:01 
GeneralRe: Simple interface question...Help!! Pin
Cormac M Redmond6-Jan-07 1:18
Cormac M Redmond6-Jan-07 1:18 
GeneralRe: Simple interface question...Help!! Pin
Shy Agam6-Jan-07 1:34
Shy Agam6-Jan-07 1:34 
GeneralRe: Simple interface question...Help!! Pin
Cormac M Redmond6-Jan-07 9:06
Cormac M Redmond6-Jan-07 9:06 
GeneralRe: Simple interface question...Help!! Pin
hofi19856-Jan-07 1:32
hofi19856-Jan-07 1:32 
GeneralRe: Simple interface question...Help!! Pin
Shy Agam6-Jan-07 1:35
Shy Agam6-Jan-07 1:35 

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.