public static bool HasDynamicDisk(ManagementScope scope, List <string> volumes) { bool flag = false; foreach (string volume in volumes) { try { if (WMIUtils.StartsWith(WMIUtils.GetDiskSignature(scope, volume), new byte[8] { (byte)68, (byte)77, (byte)73, (byte)79, (byte)58, (byte)73, (byte)68, (byte)58 })) { flag = true; break; } } catch (Exception ex) { } } return(flag); }