private string GetUfidText(string owner) { UniqueFileIdentifierFrame frame = UniqueFileIdentifierFrame.Get(this, owner, false); string result = frame == null?null:frame.Identifier.ToString(); return(string.IsNullOrEmpty(result)?null:result); }
private void SetUfidText(string owner, string text) { UniqueFileIdentifierFrame frame = UniqueFileIdentifierFrame.Get(this, owner, true); if (!string.IsNullOrEmpty(text)) { ByteVector identifier = ByteVector.FromString(text, StringType.UTF8); frame.Identifier = identifier; } else { RemoveFrame(frame); } }