コード例 #1
0
        public override Frame Clone()
        {
            UniqueFileIdentifierFrame frame =
                new UniqueFileIdentifierFrame(owner);

            if (identifier != null)
            {
                frame.identifier = new ByteVector(identifier);
            }
            return(frame);
        }
コード例 #2
0
        public static UniqueFileIdentifierFrame Get(Tag tag, string owner, bool create)
        {
            foreach (Frame f in tag.GetFrames(FrameType.UFID))
            {
                if (f is UniqueFileIdentifierFrame && (f as UniqueFileIdentifierFrame).Owner == owner)
                {
                    return(f as UniqueFileIdentifierFrame);
                }
            }

            if (!create)
            {
                return(null);
            }

            UniqueFileIdentifierFrame frame = new UniqueFileIdentifierFrame(owner, null);

            tag.AddFrame(frame);
            return(frame);
        }
コード例 #3
0
 public static UniqueFileIdentifierFrame Get (Tag tag, string owner, bool create)
 {
    foreach (Frame f in tag.GetFrames (FrameType.UFID))
       if (f is UniqueFileIdentifierFrame && (f as UniqueFileIdentifierFrame).Owner == owner)
          return f as UniqueFileIdentifierFrame;
    
    if (!create) return null;
    
    UniqueFileIdentifierFrame frame = new UniqueFileIdentifierFrame (owner, null);
    tag.AddFrame (frame);
    return frame;
 }
コード例 #4
0
		public override Frame Clone ()
		{
			UniqueFileIdentifierFrame frame =
				new UniqueFileIdentifierFrame (owner);
			if (identifier != null)
				frame.identifier = new ByteVector (identifier);
			return frame;
		}