private void WriteNextInitialSharedData(SharedDataObjectUpdate obj) { DataFormatConfiguration[] addedFormats = obj.GetAddedFormats(); int length = -1; if (addedFormats != null) { length = addedFormats.Length; int index = 0; for (index = 0; index < length; index++) { this.WriteNextAddedFormats(addedFormats[index]); } } this._InitialSharedData_AddedFormats_Count[this._currentIndex] = length; DataFormatConfiguration[] changedFormats = obj.GetChangedFormats(); int num3 = -1; if (changedFormats != null) { num3 = changedFormats.Length; int num4 = 0; for (num4 = 0; num4 < num3; num4++) { this.WriteNextChangedFormats(changedFormats[num4]); } } this._InitialSharedData_ChangedFormats_Count[this._currentIndex] = num3; ClipboardData[] updatedData = obj.GetUpdatedData(); int num5 = -1; if (updatedData != null) { num5 = updatedData.Length; int num6 = 0; for (num6 = 0; num6 < num5; num6++) { this.WriteNextUpdatedData(updatedData[num6]); } } this._InitialSharedData_UpdatedData_Count[this._currentIndex] = num5; string[] removedClipboardFormatIds = obj.GetRemovedClipboardFormatIds(); int num7 = -1; if (removedClipboardFormatIds != null) { num7 = removedClipboardFormatIds.Length; int num8 = 0; for (num8 = 0; num8 < num7; num8++) { this.WriteString(removedClipboardFormatIds[num8]); } } this._InitialSharedData_RemovedClipboardFormatIds_Count[this._currentIndex] = num7; }