In Development
Last Updated: 19 Feb 2021 11:26 by ADMIN
David
Created on: 19 Feb 2021 10:58
Category: RichTextBox
Type: Bug Report
0
RichTextBox: DocumentFormatProvidersManager.GetSupportedExtensions() throws NullReferenceException in .NET Core

The GetSupportedExtensions method of DocumentFormatProvidersManager throws NullReferenceException when invoked.

Workaround:

HashSet<string> supportedExtensions = new HashSet<string>();
foreach (var provider in DocumentFormatProvidersManager.FormatProviders)
{
    foreach (var extension in provider.SupportedExtensions)
    {
        supportedExtensions.Add(extension);
    }
}

 

0 comments