D
dtdev
hi,
Im new to C# - ive have my background in c/c++ - and somethings are abit new
to me, so havent really gotten the total feel of the laguage yet.
I have a situation which i really have no idea to solve in c# - what i do,
is that i have a MAIN form, which subsequently calls several other forms.
There are very few variable things between each form, but i need to have a
"SaveData()" function for each form.
In C++ it was possible to do this by inheratice of classes - in C i could
pass a functionpointer to my local function, and obtain the thing i wish.
How do i do a similar thing i c# ? - pass some reference to a local function
(in one class) to another class ?
Hope you can help.
Im new to C# - ive have my background in c/c++ - and somethings are abit new
to me, so havent really gotten the total feel of the laguage yet.
I have a situation which i really have no idea to solve in c# - what i do,
is that i have a MAIN form, which subsequently calls several other forms.
There are very few variable things between each form, but i need to have a
"SaveData()" function for each form.
In C++ it was possible to do this by inheratice of classes - in C i could
pass a functionpointer to my local function, and obtain the thing i wish.
How do i do a similar thing i c# ? - pass some reference to a local function
(in one class) to another class ?
Hope you can help.