public IEnumerable <Outlook.Store> GetStores()
 {
     foreach (var store in m_session.GetStores())
     {
         yield return(store);
     }
 }
        internal static bool TryGetStore(this Outlook.NameSpace item, string descriptor, out Outlook.Store result)
        {
            bool success = false;

            result = default;

            foreach (var store in item.GetStores())
            {
                if (string.Equals(descriptor, store.DisplayName, StringComparison.CurrentCultureIgnoreCase) ||
                    string.Equals(descriptor, store.FilePath, StringComparison.InvariantCultureIgnoreCase))
                {
                    result  = store;
                    success = true;
                }
            }

            return(success);
        }