示例#1
0
 private static void ParseSpeedDetails(DeviceFamily family, DevicePart part, string speedDetails)
 {
     if (!string.IsNullOrEmpty(speedDetails))
     {
         string[] splitUpSpeeds = speedDetails.Split(new string[] { "    " }, StringSplitOptions.RemoveEmptyEntries);
         foreach (string speed in splitUpSpeeds)
         {
             // Shouldn't start with "("
             if (!speed.StartsWith("("))
             {
                 DeviceSpeed     familySpeed = family.CreateSpeed(speed);
                 DevicePartSpeed partSpeed   = part.CreateSpeed(familySpeed);
             }
         }
     }
 }