private long[] GetTypeInfoVersions(object comObject) { UnsafeNativeMethods.ITypeInfo[] infoArray = Com2TypeInfoProcessor.FindTypeInfos(comObject, false); long[] numArray = new long[infoArray.Length]; for (int i = 0; i < infoArray.Length; i++) { numArray[i] = this.GetTypeInfoVersion(infoArray[i]); } return(numArray); }
/// <summary> /// Gets a list of version longs for each type info in the COM object /// representing hte current version stamp, function and variable count. /// If any of these things change, we'll re-fetch the properties. /// </summary> private long[] GetTypeInfoVersions(object comObject) { // get type infos // UnsafeNativeMethods.ITypeInfo[] pTypeInfos = Com2TypeInfoProcessor.FindTypeInfos(comObject, false); // build up the info. // long[] versions = new long[pTypeInfos.Length]; for (int i = 0; i < pTypeInfos.Length; i++) { versions[i] = GetTypeInfoVersion(pTypeInfos[i]); } return(versions); }