1
Answer

Compile-time type checking

microsoc_315

microsoc_315

21y
1.6k
1
Hi! I have this (for me it's a big problem)problem, the first one is how can you pass a DBNull & a null value in an integer type varible/property? I have come up with the solution to this problem by making the variable/property to an object type. But in an object type variable/property you can pass any data type value and I only want to pass an int type, DBnull & null value to this variable/property. I know you can do this by the GetType method but i want to filter it during compile time. I don't know if it's possible but any suggesstions will be welcome. Thank you very much!

Answers (1)