Get() 개인적인 메소드

private Get ( Tag tag, string description ) : UserTextInformationFrame
tag Tag
description string
리턴 UserTextInformationFrame
예제 #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);
        }
예제 #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);
            }
        }