C# converting a string[] to a decimal

Viewed 45

i need some help over here in order to understand what this code does exactly because i'm new into programming..

So far I understand that it reads a serial number from a specific file (e.g Settings\sn) but after that i got no clue what this code converts it to.

The S/N that gets converted is this: A2-4763-374F-F6BC-CD64 although, i don't know exactly what the result is AFTER converting it so that's why i need some help over here or how to convert it..i'd be grateful.

GlobalVars.MainSoftSn = RestFunctions.ReadALLTXT(string.Concat(GlobalVars.SmPath, "Settings\\sn")); 
string[] strArrays = Strings.Split(GlobalVars.MainSoftSn, "-", -1, CompareMethod.Binary);
if ((int)strArrays.Length > 1)
{
    GlobalVars.CodeKey = new decimal(Convert.ToInt32(strArrays[checked((int)strArrays.Length - 1)], 16));
}

Thanks in advance for any help provided..

0 Answers
Related