/////////////////////////////////////////////////////////////// // This is generated code. ////////////////////////////////////////////////////////////// // Code is generated using LLBLGen Pro version: 4.2 // Code is generated on: // Code is generated using templates: SD.TemplateBindings.SharedTemplates // Templates vendor: Solutions Design. // Templates version: ////////////////////////////////////////////////////////////// using System; #if !CF using System.Runtime.Serialization; #endif using System.Collections.Generic; using Datalib.FactoryClasses; using SD.LLBLGen.Pro.ORMSupportClasses; namespace Datalib.HelperClasses { /// /// Helper class which will eases the creation of custom made resultsets. Usable in typed lists /// and dynamic lists created using the dynamic query engine. /// [Serializable] public partial class ResultsetFields : EntityFields2, ISerializable { /// CTor public ResultsetFields(int amountFields) : base(amountFields, InheritanceInfoProviderSingleton.GetInstance(), null) { } /// Deserialization constructor /// Info. /// Context. protected ResultsetFields(SerializationInfo info, StreamingContext context) : base(info.GetInt32("_amountFields"), InheritanceInfoProviderSingleton.GetInstance(), null) { List fields = (List)info.GetValue("_fields", typeof(List)); for (int i = 0; i < fields.Count; i++) { this[i] = fields[i]; } } /// Populates a with the data needed to serialize the target object. /// The to populate with data. /// The destination (see ) for this serialization. public virtual void GetObjectData(SerializationInfo info, StreamingContext context) { info.AddValue("_amountFields", this.Count); List fields = new List(this.Count); for (int i = 0; i < this.Count; i++) { fields.Add(this[i]); } info.AddValue("_fields", fields, typeof(List)); } #region Included Code #endregion } }