I assume that you mean that you have content in the cell, which can be either a date, a double, or a simple string, and that you want to state what the corresponding .NET type is. I believe that there is no direct way to do this. One approach would be to get Value2 in the cell and try to apply it to each of these types, starting with the most restrictive one, until the cast action works, i.e. DateTime (DateTime.FromOADate), then double (Convert.ToDouble), then a string - and then apply a validation rule that applies to the specific type that you found.
I'm not quite sure what you mean by verification, and what would you buy. Once you know the type of content, what would you do with it?
Mathias
source share