Get() private method

private Get ( Tag tag, string description ) : UserTextInformationFrame
tag Tag
description string
return UserTextInformationFrame
Ejemplo n.º 1
0
        private string GetUserTextAsString(string description, bool caseSensitive)
        {
            UserTextInformationFrame frame = UserTextInformationFrame.Get(this, description, Tag.DefaultEncoding, false, caseSensitive);
            string result = frame == null?null:string.Join(";", frame.Text);

            return(string.IsNullOrEmpty(result)?null:result);
        }
Ejemplo n.º 2
0
        private void SetUserTextAsString(string description, string text, bool caseSensitive)
        {
            UserTextInformationFrame frame = UserTextInformationFrame.Get(this, description, Tag.DefaultEncoding, true, caseSensitive);

            if (!string.IsNullOrEmpty(text))
            {
                frame.Text = text.Split(';');
            }
            else
            {
                RemoveFrame(frame);
            }
        }