Click here to Skip to main content
15,891,204 members
Home / Discussions / C#
   

C#

 
GeneralSerializationException With DataTable Pin
Wender Oliveira23-Aug-05 4:06
Wender Oliveira23-Aug-05 4:06 
GeneralRe: SerializationException With DataTable Pin
SeMartens23-Aug-05 4:21
SeMartens23-Aug-05 4:21 
GeneralRe: SerializationException With DataTable Pin
Wender Oliveira23-Aug-05 4:48
Wender Oliveira23-Aug-05 4:48 
GeneralRe: SerializationException With DataTable Pin
miah alom23-Aug-05 4:39
miah alom23-Aug-05 4:39 
GeneralRe: SerializationException With DataTable Pin
Wender Oliveira23-Aug-05 7:23
Wender Oliveira23-Aug-05 7:23 
GeneralDirectX getting bogged down with nothin to do? - C# Pin
YawgmothIII23-Aug-05 3:41
YawgmothIII23-Aug-05 3:41 
GeneralRe: DirectX getting bogged down with nothin to do? - C# Pin
Judah Gabriel Himango23-Aug-05 5:15
sponsorJudah Gabriel Himango23-Aug-05 5:15 
GeneralNo templates in C# Pin
Tomerland23-Aug-05 2:49
Tomerland23-Aug-05 2:49 
Dear Gurus,

I have the following problem (reduced from more complicated stuff):

I want to process different types of data in a class (in the example I simply store the data).

The problem here (in C#) to my best understanding is, that I have to write an extra function for each data-type. This can be much more easily managed in C++ via Templates.

How do I manage such a problem in C#?


Class-Example:
   public class Action    {<br />
<br />
        public void storeValue(int    i)   {  m_intValue    = i;   }<br />
        public void storeValue(char   c)   {  m_charValue   = c;   }<br />
        public void storeValue(double d)   {  m_doubleValue = d;   }<br />
<br />
        private     int     m_intValue;<br />
                    char    m_charValue;<br />
                    double  m_doubleValue;<br />
    }


Thank you for your help
GeneralRe: No templates in C# Pin
mav.northwind23-Aug-05 3:11
mav.northwind23-Aug-05 3:11 
GeneralSSL sockets Pin
g00fyman23-Aug-05 2:45
g00fyman23-Aug-05 2:45 
GeneralRe: SSL sockets Pin
Werdna23-Aug-05 6:32
Werdna23-Aug-05 6:32 
GeneralRe: SSL sockets Pin
g00fyman23-Aug-05 13:25
g00fyman23-Aug-05 13:25 
Questionhow to zip and unzip folder through c# Pin
mkani23-Aug-05 1:58
mkani23-Aug-05 1:58 
AnswerRe: how to zip and unzip folder through c# Pin
Frank Kerrigan23-Aug-05 2:09
Frank Kerrigan23-Aug-05 2:09 
AnswerRe: how to zip and unzip folder through c# Pin
Bojan Rajkovic23-Aug-05 8:45
Bojan Rajkovic23-Aug-05 8:45 
AnswerRe: how to zip and unzip folder through c# Pin
Anonymous26-Aug-05 7:21
Anonymous26-Aug-05 7:21 
QuestionWhat type of project in c# .net Pin
dabuskol23-Aug-05 0:50
dabuskol23-Aug-05 0:50 
AnswerRe: What type of project in c# .net Pin
Frank Kerrigan23-Aug-05 0:56
Frank Kerrigan23-Aug-05 0:56 
GeneralRe: What type of project in c# .net Pin
dabuskol23-Aug-05 1:24
dabuskol23-Aug-05 1:24 
GeneralRe: What type of project in c# .net Pin
Frank Kerrigan23-Aug-05 1:43
Frank Kerrigan23-Aug-05 1:43 
GeneralMeasuringString with complete accuracy Pin
Anonymous23-Aug-05 0:31
Anonymous23-Aug-05 0:31 
GeneralRe: MeasuringString with complete accuracy Pin
Guffa23-Aug-05 0:46
Guffa23-Aug-05 0:46 
GeneralWindows Event Log Pin
afterdeath22-Aug-05 22:31
afterdeath22-Aug-05 22:31 
GeneralRe: Windows Event Log Pin
leppie22-Aug-05 23:21
leppie22-Aug-05 23:21 
GeneralRe: Windows Event Log Pin
afterdeath22-Aug-05 23:45
afterdeath22-Aug-05 23:45 

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.