FileAssociation/FileAssociationInfo.cs
/// <summary>
/// Gets array containing known file extensions from HKEY_CLASSES_ROOT.
/// </summary>
/// <returns>String array containing extensions.</returns>
Gets array containing known file extensions from HKEY_CLASSES_ROOT.
Gets array containing known file extensions from HKEY_CLASSES_ROOT .
public static string[] GetExtensions()
        {
            RegistryKey root = RegistryWrapper.ClassesRoot;
            List<string> extensionList = new List<string>();
            string[] subKeys = root.GetSubKeyNames();
            foreach (string subKey in subKeys)
            {
                if (subKey.StartsWith("."))
                {
                    extensionList.Add(subKey);
                }
            }
            return extensionList.ToArray(); ;
        }
public static string [ ] GetExtensions ( ) { RegistryKey root = RegistryWrapper . ClassesRoot ; List < string > extensionList = new List < string > ( ) ; string [ ] subKeys = root . GetSubKeyNames ( ) ; foreach ( string subKey in subKeys ) { if ( subKey . StartsWith ( " " ) ) { extensionList . Add ( subKey ) ; } } return extensionList . ToArray ( ) ; ; }
Gets array containing known file extensions from HKEY_CLASSES_ROOT.
Gets array containing known file extensions from HKEY_CLASSES_ROOT .
//TODO: Consider removing dot?
String array containing extensions.
String array containing extensions .