N
newsgroupie
Hi Newsgroupies!
I'm currently trying to port an old C++ application of mine into C#
(webforms). But how can I do this...
typedef struct
{
double fParam1;
double fParam2;
double fParam3;
double fParam4;
} EXAMPLE_STRUCT;
const <classname>::sm_sData =
{
0.1234,
1.2345,
2.3456,
3.4567,
};
....in C#? I appreciate that structs, typedefs and globals ain't allowed
in C#.
And how can you define global constants required throughout the
application say like the universal gravitational constant for example?
Many thanks in advance,
newsgroupie
I'm currently trying to port an old C++ application of mine into C#
(webforms). But how can I do this...
typedef struct
{
double fParam1;
double fParam2;
double fParam3;
double fParam4;
} EXAMPLE_STRUCT;
const <classname>::sm_sData =
{
0.1234,
1.2345,
2.3456,
3.4567,
};
....in C#? I appreciate that structs, typedefs and globals ain't allowed
in C#.
And how can you define global constants required throughout the
application say like the universal gravitational constant for example?
Many thanks in advance,
newsgroupie