SPListItem
と列名の配列があります。SPListItem
以下のコードを使用して値にアクセスしようとすると、次のようになります。
for(int i=0;i<arrColName.length;i++)
{
string tempValue = item[arrColName[i]].ToString();
// Works fine in case the the specific column in the list item is not null
// Argument exception - Values does not fall witing expected range
// exception in case the value //is null
}