public static int[] GetOptions(string options)
{
int[] Options = new int[options.Length];
int myOption = 0;
int value = 0;
int length = 0;
int pos = 0;
byte[] bArray = new byte[4];
while (pos < options.Length)
{
if (options[pos] == ',')
{
byte[] nArray = new byte[length];
Buffer.BlockCopy(bArray, 0, nArray, 0, length);
string temp = BitConverter.ToString(nArray).Replace("-0", "");
temp = temp.Replace("-", "");
value = Convert.ToInt32(temp);
Options[myOption] = value;
myOption++;
length = 0;
}
else
{
bArray[length++] = (byte)UInt32.Parse(options[pos].ToString());
}
pos++;
}
return Options;
}