C# Get HashTable Value by Key
htSegmentFields.Add("MSH","23");
string strSegmentName = "MSH";
int intSegmentFieldsMax = 0;
intSegmentFieldsMax = Convert.ToInt16(htSegmentFields[strSegmentName].ToString());
intSegmentFieldsMax would equal 23 using the command above to access the value by the key "MSH".

0 Comments:
Post a Comment
<< Home