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); }
public FrameContentBinary(FrameContentBinary other) : base(other) { Content = other.Content.Clone() as byte[]; }