FileAssociation/FileAssociationInfo.cs
/// <summary>
/// Creates actual file extension entry in registry.
/// </summary>
/// <param name="file"><see cref="FileAssociationInfo"/> instance that contains specifics on extension to be created.</param>
Creates actual file extension entry in registry.
Creates actual file extension entry in registry .
protected void Create(FileAssociationInfo file)
        {
            if (file.Exists)
            {
                file.Delete();
            }
            RegistryKey root = RegistryWrapper.ClassesRoot;
            root.CreateSubKey(file.extension);
        }
protected void Create ( FileAssociationInfo file ) { if ( file . Exists ) { file . Delete ( ) ; } RegistryKey root = RegistryWrapper . ClassesRoot ; root . CreateSubKey ( file . extension ) ; }
Creates actual file extension entry in registry.
Creates actual file extension entry in registry .
file
FileAssociationInfo
instance that contains specifics on extension to be created.
instance that contains specifics on extension to be created .