/// <summary> /// Set a DateTime vector /// </summary> public PropVariant(DateTime[] value) { if (value == null) { throw new ArgumentNullException("value"); } System.Runtime.InteropServices.ComTypes.FILETIME[] fileTimeArr = new System.Runtime.InteropServices.ComTypes.FILETIME[value.Length]; for (int i = 0; i < value.Length; i++) { fileTimeArr[i] = DateTimeToFileTime(value[i]); } PropVariantNativeMethods.InitPropVariantFromFileTimeVector(fileTimeArr, (uint)fileTimeArr.Length, this); }