I was looking for the easiest way to process task asynchronously, but keep the order. However, implementing something on top of the BlockingCollection<T> seemed a bit of an overkill. Simple async/awaitInstead, the original implementation was similar to: backgroundTasks.Add(LongProcessAsync()); And later on I could await
I needed to re-implement my function of exporting all bookmarks of a word-document into a dictionary and than setting them based on the changes in the dictionary from Word-Interop to OpenXML SDK. I've found a very helpful answer on StackOverflow suggesting the following solution: IDictionary<string, BookmarkStart> bookmarkMap
ThisRibbonCollection' does not contain a definition for 'GetRibbon'.... If you see this error, don't panic, the solution is rather simple. To make matters easier for you, Office AddIns have a partial class "ThisRibbonCollection" which is automatically used to define your Ribbon Control as the MainRibbonControl of the application.