The Artima Developer Community
Sponsored Link

C# Answers Forum
Object Type Compile Time Type Checking

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Socrates Ramos

Posts: 1
Nickname: microsoc
Registered: Sep, 2003

Object Type Compile Time Type Checking Posted: Sep 17, 2003 6:57 PM
Reply to this message Reply
Advertisement
Hi! I have this (for me it's a big problem)problem, the first one is how can you pass a DBnull & 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. But I only want to pass an int type, DBnull, & null value to this variable/property. YI 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!

Topic: C# Text Replacement Previous Topic   Next Topic Topic: Persistence and Polymorphic Reads

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use