Ejemplo n.º 1
0
        public override void Write(Stream stream, FrameContent content)
        {
            CodecState state     = new CodecState();
            CodecItem  codecItem = CodecItemByFrameId(FrameId);

            codecItem.Write(state, stream, (content as FrameContentText).Text);
        }
Ejemplo n.º 2
0
        public override void Write(Stream stream, FrameContent content)
        {
            state.ItemCount = codecItems.Count;

            for (state.ItemIndex = 0; state.ItemIndex < state.ItemCount; state.ItemIndex++)
            {
                CodecItem entry = codecItems[state.ItemIndex];

                object target = ObjectByTarget(entry.DestinationObject, content);
                object value  = GetProperty(PropInfo(target, entry.PropertyName), target);

                entry.Write(state, stream, value);
            }
        }