I switched tasks again. I love adhd and I am trying to do some work for one of my clients. I am writing a piece of code that pulls and validates information from an excel file. I am given a lot of freedom in the implementation. The only constraint is I have to use visual studio 2005. I wrote a function to convert integers. I wrote a function to covert Doubles. I wrote a function to convert Strings. So on and so forth. I have been working with generics a bit. All my previous jobs did not present me with the opportunity to dig deep. What I am trying to accomplish is below:
If you know of a solution let me know. I will post up if I find anything.
Private Sub ConvertFromString(Of T)(ByRef conversion As T, ByRef cell As String)
T.TryParse(getItem(cell), conversion)
End Sub