Пример #1
0
        private static bool TryGetFileNameFromAppleFile(MimePart part, ref string fileName)
        {
            string fileNameFromResourceFork;

            using (Stream contentReadStream = Utility.GetContentReadStream(part))
            {
                fileNameFromResourceFork = MimeAppleTranscoder.GetFileNameFromResourceFork(contentReadStream);
            }
            if (string.IsNullOrEmpty(fileNameFromResourceFork))
            {
                return(false);
            }
            fileName = fileNameFromResourceFork;
            return(true);
        }