// Token: 0x06004067 RID: 16487 RVA: 0x00126650 File Offset: 0x00124850 private SpellChecker.OptionDescription GetOptionDescriptionImplWithRetries(string optionId, bool suppressCOMExceptions) { SpellChecker.OptionDescription result = null; if (!RetryHelper.TryExecuteFunction <SpellChecker.OptionDescription>(() => this.GetOptionDescriptionImpl(optionId), out result, () => this.Init(suppressCOMExceptions), SpellChecker.SuppressedExceptions[suppressCOMExceptions], 3, false)) { return(null); } return(result); }
internal static SpellChecker.OptionDescription Create(RCW.IOptionDescription optionDescription, bool shouldSuppressCOMExceptions = true, bool shouldReleaseCOMObject = true) { if (optionDescription == null) { throw new ArgumentNullException("optionDescription"); } SpellChecker.OptionDescription optionDescription2 = new SpellChecker.OptionDescription(optionDescription.Id, optionDescription.Heading, optionDescription.Description, null); try { optionDescription2._labels = optionDescription.Labels.ToList(true, true); } catch (COMException obj) when(shouldSuppressCOMExceptions) { } finally { if (shouldReleaseCOMObject) { Marshal.ReleaseComObject(optionDescription); } } return(optionDescription2); }