src/BandcampDownloader/Helpers/TagHelper.cs
/// <summary>
/// Returns the file updated by changing the comments based on the specified TagEditAction.
/// </summary>
/// <param name="file">The file to update.</param>
/// <param name="editAction">The TagRemoveAction specifying how the tag should be updated.</param>
Returns the file updated by changing the comments based on the specified TagEditAction.
Returns the file updated by changing the comments based on the specified TagEditAction .
public static TagLib.File UpdateComments(TagLib.File file, TagRemoveAction removeAction) {
            switch (removeAction) {
                case TagRemoveAction.Empty:
                    file.Tag.Comment = "";
                    break;
                case TagRemoveAction.DoNotModify:
                    break;
                default:
                    break;
            }
            return file;
        }
public static TagLib . File UpdateComments ( TagLib . File file , TagRemoveAction removeAction ) { switch ( removeAction ) { case TagRemoveAction . Empty : file . Tag . Comment = " " ; break ; case TagRemoveAction . DoNotModify : break ; default : break ; } return file ; }
Returns the file updated by changing the comments based on the specified TagEditAction.
Returns the file updated by changing the comments based on the specified TagEditAction .
file
TagLib.File
The file to update.
The file to update .
removeAction
TagRemoveAction
editAction
The TagRemoveAction specifying how the tag should be updated.
The TagRemoveAction specifying how the tag should be updated .