Help with converting vbcode to c sharp.

Feb 19 2007 11:19 PM
Greetings, I have just started learning the C Sharp language, based on what i already know from vb. im currently converting my website to c sharp, just to get a feel for the language, how ever im stuck. the following vbcode, when converted to c sharp, does not recognise _param as a defined struct.. (eg: not giving any of the properties.) 'VB Code: Dim _param As SqlParameter = hashEnum.Value objCommand.Parameters.Add(_param.ParameterName, _param.ParameterDataType).Value = _param.ParameterValue //C Sharp Code SqlParameter _param = hashEnum.Value; objCommand.Parameters.Add(_param.ParameterName, _param.ParameterDataType).Value = _param.ParameterValue; when i go to type _param. i get no intellisense about the properties... can anyone help, Thanks, Justin

Answers (1)