I think this should be close if not spot on ;)
string _shipId = string.Empty;
decimal[] _SelectShipIId;
foreach (ShippingCarrierDTO _ship in _site.ShipVia)
{
if (string.IsNullOrEmpty(_shipId))
{
_shipId = Convert.ToString(_ship.ShipIId);
}
else
{
_shipId += "," + Convert.ToString(_ship.ShipIId);
}
}
_SelectShipIId =new decimal[_shipId.Length];
for (int i = 0; i = _shipId.ToString.Split(",").count-1; i++)
{
_SelectShipIId[i] = CDec(_shipId.ToString.Split(",")(i);
}