N
n.net
I am working with .NET 1.1 datatypes in my project in C#.
I ended up writing code a typical waterfall if..else modal.
if ( xType == "System.String")
do this
if ( xType == "System.Integer")
do this
if ( xType == "System.Double")
do that.
If it had been in C++, I would have very well used compile time type
checking. But i don't know how easy to achieve in C# with .NET 1.1
Platform.
Is C# generics is the only solution?
I ended up writing code a typical waterfall if..else modal.
if ( xType == "System.String")
do this
if ( xType == "System.Integer")
do this
if ( xType == "System.Double")
do that.
If it had been in C++, I would have very well used compile time type
checking. But i don't know how easy to achieve in C# with .NET 1.1
Platform.
Is C# generics is the only solution?