Esempio n. 1
0
        public FrameContent CreateContent(FrameDescription.FrameType _type)
        {
            FrameContent content = null;

            if (contentClasses.ContainsKey(_type))
            {
                content = (FrameContent)Activator.CreateInstance(contentClasses[_type], new object[] { this });
            }
            else
            {
                content = new FrameContentBinary(this);
            }

            content.DescriptionMap = this;

            return(content);
        }
Esempio n. 2
0
 public FrameContentBinary(FrameContentBinary other)
     : base(other)
 {
     Content = other.Content.Clone() as byte[];
 }