void IPersistable.Serialize(IntermediateFormatWriter writer) { writer.RegisterDeclaration(m_Declaration); while (writer.NextMember()) { switch (writer.CurrentMember.MemberName) { case MemberName.ActionDefinition: writer.Write(base.ActionDef); break; case MemberName.Actions: { ActionInstance[] array = new ActionInstance[base.Actions.Count]; for (int i = 0; i < array.Length; i++) { array[i] = base.Actions[i].Instance; } writer.Write(array); break; } case MemberName.ImageMapAreas: writer.WriteRIFList(ImageMapAreaInstances.InternalList); break; default: Global.Tracer.Assert(condition: false); break; } } }
void IPersistable.Serialize(IntermediateFormatWriter writer) { writer.RegisterDeclaration(ActionInfoWithDynamicImageMap.m_Declaration); while (writer.NextMember()) { switch (writer.CurrentMember.MemberName) { case MemberName.ActionDefinition: writer.Write(base.ActionDef); break; case MemberName.Actions: { ActionInstance[] array = new ActionInstance[base.Actions.Count]; for (int i = 0; i < array.Length; i++) { array[i] = ((ReportElementCollectionBase <Action>)base.Actions)[i].Instance; } writer.Write((IPersistable[])array); break; } case MemberName.ImageMapAreas: writer.WriteRIFList(this.ImageMapAreaInstances.InternalList); break; default: Global.Tracer.Assert(false); break; } } }
public override void Serialize(IntermediateFormatWriter writer) { base.Serialize(writer); writer.RegisterDeclaration(CriImageInstance.m_Declaration); while (writer.NextMember()) { switch (writer.CurrentMember.MemberName) { case MemberName.ImageData: writer.Write(this.m_imageData); break; case MemberName.MIMEType: { string value = null; if (base.ImageDef.MIMEType != null && base.ImageDef.MIMEType.IsExpression) { value = this.m_mimeType; } writer.Write(value); break; } case MemberName.Actions: { ActionInstance[] array = null; if (base.ImageDef.ActionInfo != null) { array = new ActionInstance[base.ImageDef.ActionInfo.Actions.Count]; for (int i = 0; i < array.Length; i++) { array[i] = ((ReportElementCollectionBase <Action>)base.ImageDef.ActionInfo.Actions)[i].Instance; } } writer.Write((IPersistable[])array); break; } case MemberName.ImageMapAreas: writer.WriteRIFList(this.ActionInfoWithDynamicImageMapAreas.InternalList); break; default: Global.Tracer.Assert(false); break; } } }
internal override void Serialize(IntermediateFormatWriter writer) { base.Serialize(writer); writer.RegisterDeclaration(m_Declaration); while (writer.NextMember()) { switch (writer.CurrentMember.MemberName) { case MemberName.ImageData: writer.Write(m_imageData); break; case MemberName.MIMEType: { string value = null; if (base.ImageDef.MIMEType != null && base.ImageDef.MIMEType.IsExpression) { value = m_mimeType; } writer.Write(value); break; } case MemberName.Actions: { ActionInstance[] array = null; if (base.ImageDef.ActionInfo != null) { array = new ActionInstance[base.ImageDef.ActionInfo.Actions.Count]; for (int i = 0; i < array.Length; i++) { array[i] = base.ImageDef.ActionInfo.Actions[i].Instance; } } writer.Write(array); break; } case MemberName.ImageMapAreas: writer.WriteRIFList(ActionInfoWithDynamicImageMapAreas.InternalList); break; default: Global.Tracer.Assert(condition: false); break; } } }
public void Serialize(IntermediateFormatWriter writer) { writer.RegisterDeclaration(ChildLeafInfo.m_declaration); while (writer.NextMember()) { MemberName memberName = writer.CurrentMember.MemberName; if (memberName == MemberName.List) { writer.WriteRIFList(this); } else { Global.Tracer.Assert(false); } } }