public RutaEN() { sitio = new System.Collections.Generic.List<TravelnookGenNHibernate.EN.Travelnook.SitioEN>(); favorito = new System.Collections.Generic.List<TravelnookGenNHibernate.EN.Travelnook.FavoritoEN>(); reporte = new System.Collections.Generic.List<TravelnookGenNHibernate.EN.Travelnook.ReporteEN>(); comentarios = new System.Collections.Generic.List<TravelnookGenNHibernate.EN.Travelnook.ComentarioEN>(); }
public EventoEN() { reporte = new System.Collections.Generic.List<TravelnookGenNHibernate.EN.Travelnook.ReporteEN>(); favorito = new System.Collections.Generic.List<TravelnookGenNHibernate.EN.Travelnook.FavoritoEN>(); usuario = new System.Collections.Generic.List<TravelnookGenNHibernate.EN.Travelnook.UsuarioEN>(); comentarios = new System.Collections.Generic.List<TravelnookGenNHibernate.EN.Travelnook.ComentarioEN>(); }
/// <summary> /// Extracts query-response information from the server's response. /// </summary> /// <param name='results'> /// The structure to be dissected. /// </param> internal Query(System.Collections.Generic.IList<object> results) { this.Results = new System.Collections.Generic.List<MediaStorage.Structures.Internal.Description>(); foreach(object result in results){ this.Results.Add(new Description((System.Collections.Generic.IDictionary<string, object>)result)); } }
public Profile(string name, NeoDatis.Odb.Test.VO.Login.Function function) : base( ) { this.functions = new System.Collections.Generic.List<NeoDatis.Odb.Test.VO.Login.Function >(); this.functions.Add(function); this.name = name; }
public virtual void AddFunction(NeoDatis.Odb.Test.VO.Login.Function function) { if (functions == null) { functions = new System.Collections.Generic.List<Function>(); } functions.Add(function); }
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2013.01.18 at 06:33:53 PM MEZ // /// <summary>Gets the value of the file property.</summary> /// <remarks> /// Gets the value of the file property. /// <p> /// This accessor method returns a reference to the live list, /// not a snapshot. Therefore any modification you make to the /// returned list will be present inside the JAXB object. /// This is why there is not a <CODE>set</CODE> method for the file property. /// <p> /// For example, to add a new item, do as follows: /// <pre> /// getFile().add(newItem); /// </pre> /// <p> /// Objects of the following type(s) are allowed in the list /// <see cref="File"></see> /// </remarks> public virtual System.Collections.Generic.IList<com.discobeard.spriter.dom.File> getFile() { if (file == null) { file = new System.Collections.Generic.List<com.discobeard.spriter.dom.File>(); } return this.file; }
public virtual void AddKey(string key) { if (keys == null) { keys = new System.Collections.Generic.List<string>(); } keys.Add(key); }
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2013.01.18 at 06:33:53 PM MEZ // /// <summary>Gets the value of the key property.</summary> /// <remarks> /// Gets the value of the key property. /// <p> /// This accessor method returns a reference to the live list, /// not a snapshot. Therefore any modification you make to the /// returned list will be present inside the JAXB object. /// This is why there is not a <CODE>set</CODE> method for the key property. /// <p> /// For example, to add a new item, do as follows: /// <pre> /// getKey().add(newItem); /// </pre> /// <p> /// Objects of the following type(s) are allowed in the list /// <see cref="Key"></see> /// </remarks> public virtual System.Collections.Generic.IList<com.discobeard.spriter.dom.Key> getKey() { if (key == null) { key = new System.Collections.Generic.List<com.discobeard.spriter.dom.Key>(); } return this.key; }
/// <summary>Gets the value of the entity property.</summary> /// <remarks> /// Gets the value of the entity property. /// <p> /// This accessor method returns a reference to the live list, /// not a snapshot. Therefore any modification you make to the /// returned list will be present inside the JAXB object. /// This is why there is not a <CODE>set</CODE> method for the entity property. /// <p> /// For example, to add a new item, do as follows: /// <pre> /// getEntity().add(newItem); /// </pre> /// <p> /// Objects of the following type(s) are allowed in the list /// <see cref="Entity"></see> /// </remarks> public virtual System.Collections.Generic.IList<com.discobeard.spriter.dom.Entity> getEntity() { if (entity == null) { entity = new System.Collections.Generic.List<com.discobeard.spriter.dom.Entity>(); } return this.entity; }
public RecetaEN() { lineasIngrediente = new System.Collections.Generic.List<EnMiNeveraGenNHibernate.EN.EnMiNevera.LineaIngredienteEN>(); pasos = new System.Collections.Generic.List<EnMiNeveraGenNHibernate.EN.EnMiNevera.PasosEN>(); lineasListaCompra = new System.Collections.Generic.List<EnMiNeveraGenNHibernate.EN.EnMiNevera.LineaListaCompraEN>(); comentarios = new System.Collections.Generic.List<EnMiNeveraGenNHibernate.EN.EnMiNevera.ComentarioEN>(); usuariosFavorito = new System.Collections.Generic.List<EnMiNeveraGenNHibernate.EN.EnMiNevera.UsuarioEN>(); }
/// <summary>Gets the value of the boneRef property.</summary> /// <remarks> /// Gets the value of the boneRef property. /// <p> /// This accessor method returns a reference to the live list, /// not a snapshot. Therefore any modification you make to the /// returned list will be present inside the JAXB object. /// This is why there is not a <CODE>set</CODE> method for the boneRef property. /// <p> /// For example, to add a new item, do as follows: /// <pre> /// getBoneRef().add(newItem); /// </pre> /// <p> /// Objects of the following type(s) are allowed in the list /// <see cref="BoneRef"></see> /// </remarks> public virtual System.Collections.Generic.IList<com.discobeard.spriter.dom.BoneRef> getBoneRef() { if (boneRef == null) { boneRef = new System.Collections.Generic.List<com.discobeard.spriter.dom.BoneRef> (); } return this.boneRef; }
public Person(Int32 id, float height, Double score, String name, System.Collections.Generic.IList<DateTime> dates, Boolean active) { this.id = id; this.height = height; this.score = score; this.name = name; this.dates = dates; this.active = active; }
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2013.01.18 at 06:33:53 PM MEZ // /// <summary>Gets the value of the animation property.</summary> /// <remarks> /// Gets the value of the animation property. /// <p> /// This accessor method returns a reference to the live list, /// not a snapshot. Therefore any modification you make to the /// returned list will be present inside the JAXB object. /// This is why there is not a <CODE>set</CODE> method for the animation property. /// <p> /// For example, to add a new item, do as follows: /// <pre> /// getAnimation().add(newItem); /// </pre> /// <p> /// Objects of the following type(s) are allowed in the list /// <see cref="Animation"></see> /// </remarks> public virtual System.Collections.Generic.IList<com.discobeard.spriter.dom.Animation> getAnimation() { if (animation == null) { animation = new System.Collections.Generic.List<com.discobeard.spriter.dom.Animation >(); } return this.animation; }
/// <summary> /// Constructor /// </summary> /// <param name="providers">List of all the known providers</param> public MainForm(System.Collections.Generic.IList<EXT.IStatusProvider> providers) { InitializeComponent(); _providers = providers; // Establish the preferences, either by reading the existing // preferences XML or by creating a new one. if (System.IO.File.Exists(PREFS_FILE)) { XmlSerializer ser = new XmlSerializer(typeof(Preferences)); using (System.IO.StreamReader sr = new System.IO.StreamReader(PREFS_FILE)) { _prefs = (Preferences)ser.Deserialize(sr); } } else { _prefs = new Preferences(); if (_providers.Count > 1) { _prefs.LeftProvider = _providers[0].GetType().FullName; _prefs.RightProvider = _providers[0].GetType().FullName; } else { throw new ApplicationException("Could not find at least 2 status providers"); } } // Find the two active providers FindActiveProviders(); // Establish the context menu if (!_prefs.FancyMenu) { _notifyIcon.ContextMenu = new ContextMenu(); _notifyIcon.ContextMenu.Popup += OnContextMenuPopUp; } else { _notifyIcon.ContextMenuStrip = new ContextMenuStrip(); _notifyIcon.ContextMenuStrip.ImageScalingSize = new Size(36, 36); _notifyIcon.ContextMenuStrip.Opening += OnContextMenuStripOpening; } // Set up the update timer _timer.Tick += OnTimerTick; _timer.Start(); }
/// <summary>Construct a <c>DisjunctionScorer</c>.</summary> /// <param name="subScorers">A collection of at least two subscorers. /// </param> /// <param name="minimumNrMatchers">The positive minimum number of subscorers that should /// match to match this query. /// <br/>When <c>minimumNrMatchers</c> is bigger than /// the number of <c>subScorers</c>, /// no matches will be produced. /// <br/>When minimumNrMatchers equals the number of subScorers, /// it more efficient to use <c>ConjunctionScorer</c>. /// </param> public DisjunctionSumScorer(System.Collections.Generic.IList<Scorer> subScorers, int minimumNrMatchers):base(null) { nrScorers = subScorers.Count; if (minimumNrMatchers <= 0) { throw new System.ArgumentException("Minimum nr of matchers must be positive"); } if (nrScorers <= 1) { throw new System.ArgumentException("There must be at least 2 subScorers"); } this.minimumNrMatchers = minimumNrMatchers; this.subScorers = subScorers; InitScorerDocQueue(); }
public SpanNearQuery(SpanQuery[] clauses, int slop, bool inOrder, bool collectPayloads) { // copy clauses array into an ArrayList this.clauses = new System.Collections.Generic.List<SpanQuery>(clauses.Length); for (int i = 0; i < clauses.Length; i++) { SpanQuery clause = clauses[i]; if (i == 0) { // check field internalField = clause.Field; } else if (!clause.Field.Equals(internalField)) { throw new System.ArgumentException("Clauses must have same field."); } this.clauses.Add(clause); } this.collectPayloads = collectPayloads; this.internalSlop = slop; this.inOrder = inOrder; }
public ProductCategory(string name) : base() { this.name = name; products = new System.Collections.Generic.List<NeoDatis.Odb.Test.VO.Arraycollectionmap.Catalog.Product >(); }
/* * Return all files referenced by this SegmentInfo. The * returns List is a locally cached List so you should not * modify it. */ public System.Collections.Generic.IList<string> Files() { if (files != null) { // Already cached: return files; } files = new System.Collections.Generic.List<string>(); bool useCompoundFile = GetUseCompoundFile(); if (useCompoundFile) { files.Add(name + "." + IndexFileNames.COMPOUND_FILE_EXTENSION); } else { System.String[] exts = IndexFileNames.NON_STORE_INDEX_EXTENSIONS; for (int i = 0; i < exts.Length; i++) AddIfExists(files, name + "." + exts[i]); } if (docStoreOffset != - 1) { // We are sharing doc stores (stored fields, term // vectors) with other segments System.Diagnostics.Debug.Assert(docStoreSegment != null); if (docStoreIsCompoundFile) { files.Add(docStoreSegment + "." + IndexFileNames.COMPOUND_FILE_STORE_EXTENSION); } else { System.String[] exts = IndexFileNames.STORE_INDEX_EXTENSIONS; for (int i = 0; i < exts.Length; i++) AddIfExists(files, docStoreSegment + "." + exts[i]); } } else if (!useCompoundFile) { // We are not sharing, and, these files were not // included in the compound file System.String[] exts = IndexFileNames.STORE_INDEX_EXTENSIONS; for (int i = 0; i < exts.Length; i++) AddIfExists(files, name + "." + exts[i]); } System.String delFileName = IndexFileNames.FileNameFromGeneration(name, "." + IndexFileNames.DELETES_EXTENSION, delGen); if (delFileName != null && (delGen >= YES || dir.FileExists(delFileName))) { files.Add(delFileName); } // Careful logic for norms files if (normGen != null) { for (int i = 0; i < normGen.Length; i++) { long gen = normGen[i]; if (gen >= YES) { // Definitely a separate norm file, with generation: files.Add(IndexFileNames.FileNameFromGeneration(name, "." + IndexFileNames.SEPARATE_NORMS_EXTENSION + i, gen)); } else if (NO == gen) { // No separate norms but maybe plain norms // in the non compound file case: if (!hasSingleNormFile && !useCompoundFile) { System.String fileName = name + "." + IndexFileNames.PLAIN_NORMS_EXTENSION + i; if (dir.FileExists(fileName)) { files.Add(fileName); } } } else if (CHECK_DIR == gen) { // Pre-2.1: we have to check file existence System.String fileName = null; if (useCompoundFile) { fileName = name + "." + IndexFileNames.SEPARATE_NORMS_EXTENSION + i; } else if (!hasSingleNormFile) { fileName = name + "." + IndexFileNames.PLAIN_NORMS_EXTENSION + i; } if (fileName != null && dir.FileExists(fileName)) { files.Add(fileName); } } } } else if (preLockless || (!hasSingleNormFile && !useCompoundFile)) { // Pre-2.1: we have to scan the dir to find all // matching _X.sN/_X.fN files for our segment: System.String prefix; if (useCompoundFile) prefix = name + "." + IndexFileNames.SEPARATE_NORMS_EXTENSION; else prefix = name + "." + IndexFileNames.PLAIN_NORMS_EXTENSION; int prefixLength = prefix.Length; System.String[] allFiles = dir.ListAll(); IndexFileNameFilter filter = IndexFileNameFilter.GetFilter(); for (int i = 0; i < allFiles.Length; i++) { System.String fileName = allFiles[i]; if (filter.Accept(null, fileName) && fileName.Length > prefixLength && System.Char.IsDigit(fileName[prefixLength]) && fileName.StartsWith(prefix)) { files.Add(fileName); } } } return files; }
/// <summary> /// 绑定地标区域 /// </summary> protected void BinLankId(string[] argumentlist) { System.Collections.Generic.IList <EyouSoft.Model.SystemStructure.MSystemLandMark> LandMarklist = EyouSoft.BLL.SystemStructure.BSystemLandMark.CreateInstance().GetList(Convert.ToInt32(argumentlist[0])); if (LandMarklist.Count > 0) { StringBuilder strLandMark = new StringBuilder("["); foreach (var model in LandMarklist) { strLandMark.Append("{\"Por\":\"" + model.Por + "\",\"Id\":\"" + model.Id + "\"},"); } strLandMark.Remove(strLandMark.Length - 1, 1); strLandMark.Append("]"); HttpContext.Current.Response.Write(strLandMark); } else { HttpContext.Current.Response.Write("error"); } }
public static void EntityTokensAdded <T, U>(this IEventPublisher eventPublisher, T entity, System.Collections.Generic.IList <U> tokens) where T : BaseEntity { eventPublisher.Publish(new EntityTokensAddedEvent <T, U>(entity, tokens)); }
public int Send(System.Collections.Generic.IList <System.ArraySegment <byte> > buffers, System.Net.Sockets.SocketFlags socketFlags, out System.Net.Sockets.SocketError errorCode) { errorCode = default(System.Net.Sockets.SocketError); return(default(int)); }
public virtual Net.Vpc.Upa.Impl.Uql.ExpressionDeclaration GetDeclaration(string name) { System.Collections.Generic.IList <Net.Vpc.Upa.Impl.Uql.ExpressionDeclaration> values = GetDeclarations(name); if ((values.Count == 0)) { return(null); } return(values[0]); }
private void SetUnpackedValueOfListPolymorphicItself(MsgPack.Serialization.PolymorphicMemberTypeKnownType_List_ListPolymorphicItselfGetOnlyCollectionProperty unpackingContext, System.Collections.Generic.IList <string> unpackedValue) { System.Collections.Generic.IList <string> existent = default(System.Collections.Generic.IList <string>); existent = unpackingContext.ListPolymorphicItself; System.Collections.Generic.IEnumerator <string> enumerator = unpackedValue.GetEnumerator(); string current; try { for ( ; enumerator.MoveNext(); ) { current = enumerator.Current; existent.Add(current); } } finally { enumerator.Dispose(); } }
public MsgPack_Serialization_EnumMemberObjectSerializer(MsgPack.Serialization.SerializationContext context) : base(context) { this._serializer0 = context.GetSerializer <MsgPack.Serialization.EnumByName>(MsgPack.Serialization.EnumMessagePackSerializerHelpers.DetermineEnumSerializationMethod(context, typeof(MsgPack.Serialization.EnumByName), MsgPack.Serialization.EnumMemberSerializationMethod.ByName)); this._serializer1 = context.GetSerializer <MsgPack.Serialization.EnumByName>(MsgPack.Serialization.EnumMessagePackSerializerHelpers.DetermineEnumSerializationMethod(context, typeof(MsgPack.Serialization.EnumByName), MsgPack.Serialization.EnumMemberSerializationMethod.ByUnderlyingValue)); this._serializer2 = context.GetSerializer <MsgPack.Serialization.EnumByName>(MsgPack.Serialization.EnumMessagePackSerializerHelpers.DetermineEnumSerializationMethod(context, typeof(MsgPack.Serialization.EnumByName), MsgPack.Serialization.EnumMemberSerializationMethod.Default)); this._serializer3 = context.GetSerializer <MsgPack.Serialization.EnumByUnderlyingValue>(MsgPack.Serialization.EnumMessagePackSerializerHelpers.DetermineEnumSerializationMethod(context, typeof(MsgPack.Serialization.EnumByUnderlyingValue), MsgPack.Serialization.EnumMemberSerializationMethod.ByName)); this._serializer4 = context.GetSerializer <MsgPack.Serialization.EnumByUnderlyingValue>(MsgPack.Serialization.EnumMessagePackSerializerHelpers.DetermineEnumSerializationMethod(context, typeof(MsgPack.Serialization.EnumByUnderlyingValue), MsgPack.Serialization.EnumMemberSerializationMethod.ByUnderlyingValue)); this._serializer5 = context.GetSerializer <MsgPack.Serialization.EnumByUnderlyingValue>(MsgPack.Serialization.EnumMessagePackSerializerHelpers.DetermineEnumSerializationMethod(context, typeof(MsgPack.Serialization.EnumByUnderlyingValue), MsgPack.Serialization.EnumMemberSerializationMethod.Default)); this._serializer6 = context.GetSerializer <MsgPack.Serialization.EnumDefault>(MsgPack.Serialization.EnumMessagePackSerializerHelpers.DetermineEnumSerializationMethod(context, typeof(MsgPack.Serialization.EnumDefault), MsgPack.Serialization.EnumMemberSerializationMethod.ByName)); this._serializer7 = context.GetSerializer <MsgPack.Serialization.EnumDefault>(MsgPack.Serialization.EnumMessagePackSerializerHelpers.DetermineEnumSerializationMethod(context, typeof(MsgPack.Serialization.EnumDefault), MsgPack.Serialization.EnumMemberSerializationMethod.ByUnderlyingValue)); this._serializer8 = context.GetSerializer <MsgPack.Serialization.EnumDefault>(MsgPack.Serialization.EnumMessagePackSerializerHelpers.DetermineEnumSerializationMethod(context, typeof(MsgPack.Serialization.EnumDefault), MsgPack.Serialization.EnumMemberSerializationMethod.Default)); System.Action <MsgPack.Packer, MsgPack.Serialization.EnumMemberObject>[] packOperationList = default(System.Action <MsgPack.Packer, MsgPack.Serialization.EnumMemberObject>[]); packOperationList = new System.Action <MsgPack.Packer, MsgPack.Serialization.EnumMemberObject> [9]; packOperationList[0] = new System.Action <MsgPack.Packer, MsgPack.Serialization.EnumMemberObject>(this.PackValueOfByNameByNameProperty); packOperationList[1] = new System.Action <MsgPack.Packer, MsgPack.Serialization.EnumMemberObject>(this.PackValueOfByNameByUnderlyingValueProperty); packOperationList[2] = new System.Action <MsgPack.Packer, MsgPack.Serialization.EnumMemberObject>(this.PackValueOfByNameDefaultProperty); packOperationList[3] = new System.Action <MsgPack.Packer, MsgPack.Serialization.EnumMemberObject>(this.PackValueOfByUnderlyingValueByNameProperty); packOperationList[4] = new System.Action <MsgPack.Packer, MsgPack.Serialization.EnumMemberObject>(this.PackValueOfByUnderlyingValueByUnderlyingValueProperty); packOperationList[5] = new System.Action <MsgPack.Packer, MsgPack.Serialization.EnumMemberObject>(this.PackValueOfByUnderlyingValueDefaultProperty); packOperationList[6] = new System.Action <MsgPack.Packer, MsgPack.Serialization.EnumMemberObject>(this.PackValueOfDefaultByNameProperty); packOperationList[7] = new System.Action <MsgPack.Packer, MsgPack.Serialization.EnumMemberObject>(this.PackValueOfDefaultByUnderlyingValueProperty); packOperationList[8] = new System.Action <MsgPack.Packer, MsgPack.Serialization.EnumMemberObject>(this.PackValueOfDefaultDefaultProperty); this._packOperationList = packOperationList; System.Collections.Generic.Dictionary <string, System.Action <MsgPack.Packer, MsgPack.Serialization.EnumMemberObject> > packOperationTable = default(System.Collections.Generic.Dictionary <string, System.Action <MsgPack.Packer, MsgPack.Serialization.EnumMemberObject> >); packOperationTable = new System.Collections.Generic.Dictionary <string, System.Action <MsgPack.Packer, MsgPack.Serialization.EnumMemberObject> >(9); packOperationTable["ByNameByNameProperty"] = new System.Action <MsgPack.Packer, MsgPack.Serialization.EnumMemberObject>(this.PackValueOfByNameByNameProperty); packOperationTable["ByNameByUnderlyingValueProperty"] = new System.Action <MsgPack.Packer, MsgPack.Serialization.EnumMemberObject>(this.PackValueOfByNameByUnderlyingValueProperty); packOperationTable["ByNameDefaultProperty"] = new System.Action <MsgPack.Packer, MsgPack.Serialization.EnumMemberObject>(this.PackValueOfByNameDefaultProperty); packOperationTable["ByUnderlyingValueByNameProperty"] = new System.Action <MsgPack.Packer, MsgPack.Serialization.EnumMemberObject>(this.PackValueOfByUnderlyingValueByNameProperty); packOperationTable["ByUnderlyingValueByUnderlyingValueProperty"] = new System.Action <MsgPack.Packer, MsgPack.Serialization.EnumMemberObject>(this.PackValueOfByUnderlyingValueByUnderlyingValueProperty); packOperationTable["ByUnderlyingValueDefaultProperty"] = new System.Action <MsgPack.Packer, MsgPack.Serialization.EnumMemberObject>(this.PackValueOfByUnderlyingValueDefaultProperty); packOperationTable["DefaultByNameProperty"] = new System.Action <MsgPack.Packer, MsgPack.Serialization.EnumMemberObject>(this.PackValueOfDefaultByNameProperty); packOperationTable["DefaultByUnderlyingValueProperty"] = new System.Action <MsgPack.Packer, MsgPack.Serialization.EnumMemberObject>(this.PackValueOfDefaultByUnderlyingValueProperty); packOperationTable["DefaultDefaultProperty"] = new System.Action <MsgPack.Packer, MsgPack.Serialization.EnumMemberObject>(this.PackValueOfDefaultDefaultProperty); this._packOperationTable = packOperationTable; System.Action <MsgPack.Unpacker, MsgPack.Serialization.EnumMemberObject, int, int>[] unpackOperationList = default(System.Action <MsgPack.Unpacker, MsgPack.Serialization.EnumMemberObject, int, int>[]); unpackOperationList = new System.Action <MsgPack.Unpacker, MsgPack.Serialization.EnumMemberObject, int, int> [9]; unpackOperationList[0] = new System.Action <MsgPack.Unpacker, MsgPack.Serialization.EnumMemberObject, int, int>(this.UnpackValueOfByNameByNameProperty); unpackOperationList[1] = new System.Action <MsgPack.Unpacker, MsgPack.Serialization.EnumMemberObject, int, int>(this.UnpackValueOfByNameByUnderlyingValueProperty); unpackOperationList[2] = new System.Action <MsgPack.Unpacker, MsgPack.Serialization.EnumMemberObject, int, int>(this.UnpackValueOfByNameDefaultProperty); unpackOperationList[3] = new System.Action <MsgPack.Unpacker, MsgPack.Serialization.EnumMemberObject, int, int>(this.UnpackValueOfByUnderlyingValueByNameProperty); unpackOperationList[4] = new System.Action <MsgPack.Unpacker, MsgPack.Serialization.EnumMemberObject, int, int>(this.UnpackValueOfByUnderlyingValueByUnderlyingValueProperty); unpackOperationList[5] = new System.Action <MsgPack.Unpacker, MsgPack.Serialization.EnumMemberObject, int, int>(this.UnpackValueOfByUnderlyingValueDefaultProperty); unpackOperationList[6] = new System.Action <MsgPack.Unpacker, MsgPack.Serialization.EnumMemberObject, int, int>(this.UnpackValueOfDefaultByNameProperty); unpackOperationList[7] = new System.Action <MsgPack.Unpacker, MsgPack.Serialization.EnumMemberObject, int, int>(this.UnpackValueOfDefaultByUnderlyingValueProperty); unpackOperationList[8] = new System.Action <MsgPack.Unpacker, MsgPack.Serialization.EnumMemberObject, int, int>(this.UnpackValueOfDefaultDefaultProperty); this._unpackOperationList = unpackOperationList; System.Collections.Generic.Dictionary <string, System.Action <MsgPack.Unpacker, MsgPack.Serialization.EnumMemberObject, int, int> > unpackOperationTable = default(System.Collections.Generic.Dictionary <string, System.Action <MsgPack.Unpacker, MsgPack.Serialization.EnumMemberObject, int, int> >); unpackOperationTable = new System.Collections.Generic.Dictionary <string, System.Action <MsgPack.Unpacker, MsgPack.Serialization.EnumMemberObject, int, int> >(9); unpackOperationTable["ByNameByNameProperty"] = new System.Action <MsgPack.Unpacker, MsgPack.Serialization.EnumMemberObject, int, int>(this.UnpackValueOfByNameByNameProperty); unpackOperationTable["ByNameByUnderlyingValueProperty"] = new System.Action <MsgPack.Unpacker, MsgPack.Serialization.EnumMemberObject, int, int>(this.UnpackValueOfByNameByUnderlyingValueProperty); unpackOperationTable["ByNameDefaultProperty"] = new System.Action <MsgPack.Unpacker, MsgPack.Serialization.EnumMemberObject, int, int>(this.UnpackValueOfByNameDefaultProperty); unpackOperationTable["ByUnderlyingValueByNameProperty"] = new System.Action <MsgPack.Unpacker, MsgPack.Serialization.EnumMemberObject, int, int>(this.UnpackValueOfByUnderlyingValueByNameProperty); unpackOperationTable["ByUnderlyingValueByUnderlyingValueProperty"] = new System.Action <MsgPack.Unpacker, MsgPack.Serialization.EnumMemberObject, int, int>(this.UnpackValueOfByUnderlyingValueByUnderlyingValueProperty); unpackOperationTable["ByUnderlyingValueDefaultProperty"] = new System.Action <MsgPack.Unpacker, MsgPack.Serialization.EnumMemberObject, int, int>(this.UnpackValueOfByUnderlyingValueDefaultProperty); unpackOperationTable["DefaultByNameProperty"] = new System.Action <MsgPack.Unpacker, MsgPack.Serialization.EnumMemberObject, int, int>(this.UnpackValueOfDefaultByNameProperty); unpackOperationTable["DefaultByUnderlyingValueProperty"] = new System.Action <MsgPack.Unpacker, MsgPack.Serialization.EnumMemberObject, int, int>(this.UnpackValueOfDefaultByUnderlyingValueProperty); unpackOperationTable["DefaultDefaultProperty"] = new System.Action <MsgPack.Unpacker, MsgPack.Serialization.EnumMemberObject, int, int>(this.UnpackValueOfDefaultDefaultProperty); this._unpackOperationTable = unpackOperationTable; this._memberNames = new string[] { "ByNameByNameProperty", "ByNameByUnderlyingValueProperty", "ByNameDefaultProperty", "ByUnderlyingValueByNameProperty", "ByUnderlyingValueByUnderlyingValueProperty", "ByUnderlyingValueDefaultProperty", "DefaultByNameProperty", "DefaultByUnderlyingValueProperty", "DefaultDefaultProperty" }; this.this_PackValueOfByNameByNamePropertyDelegate = new System.Action <MsgPack.Packer, MsgPack.Serialization.EnumMemberObject>(this.PackValueOfByNameByNameProperty); this.this_PackValueOfByNameByUnderlyingValuePropertyDelegate = new System.Action <MsgPack.Packer, MsgPack.Serialization.EnumMemberObject>(this.PackValueOfByNameByUnderlyingValueProperty); this.this_PackValueOfByNameDefaultPropertyDelegate = new System.Action <MsgPack.Packer, MsgPack.Serialization.EnumMemberObject>(this.PackValueOfByNameDefaultProperty); this.this_PackValueOfByUnderlyingValueByNamePropertyDelegate = new System.Action <MsgPack.Packer, MsgPack.Serialization.EnumMemberObject>(this.PackValueOfByUnderlyingValueByNameProperty); this.this_PackValueOfByUnderlyingValueByUnderlyingValuePropertyDelegate = new System.Action <MsgPack.Packer, MsgPack.Serialization.EnumMemberObject>(this.PackValueOfByUnderlyingValueByUnderlyingValueProperty); this.this_PackValueOfByUnderlyingValueDefaultPropertyDelegate = new System.Action <MsgPack.Packer, MsgPack.Serialization.EnumMemberObject>(this.PackValueOfByUnderlyingValueDefaultProperty); this.this_PackValueOfDefaultByNamePropertyDelegate = new System.Action <MsgPack.Packer, MsgPack.Serialization.EnumMemberObject>(this.PackValueOfDefaultByNameProperty); this.this_PackValueOfDefaultByUnderlyingValuePropertyDelegate = new System.Action <MsgPack.Packer, MsgPack.Serialization.EnumMemberObject>(this.PackValueOfDefaultByUnderlyingValueProperty); this.this_PackValueOfDefaultDefaultPropertyDelegate = new System.Action <MsgPack.Packer, MsgPack.Serialization.EnumMemberObject>(this.PackValueOfDefaultDefaultProperty); this.this_SetUnpackedValueOfByNameByNamePropertyDelegate = new System.Action <MsgPack.Serialization.EnumMemberObject, MsgPack.Serialization.EnumByName>(this.SetUnpackedValueOfByNameByNameProperty); this.this_UnpackValueOfByNameByNamePropertyDelegate = new System.Action <MsgPack.Unpacker, MsgPack.Serialization.EnumMemberObject, int, int>(this.UnpackValueOfByNameByNameProperty); this.this_SetUnpackedValueOfByNameByUnderlyingValuePropertyDelegate = new System.Action <MsgPack.Serialization.EnumMemberObject, MsgPack.Serialization.EnumByName>(this.SetUnpackedValueOfByNameByUnderlyingValueProperty); this.this_UnpackValueOfByNameByUnderlyingValuePropertyDelegate = new System.Action <MsgPack.Unpacker, MsgPack.Serialization.EnumMemberObject, int, int>(this.UnpackValueOfByNameByUnderlyingValueProperty); this.this_SetUnpackedValueOfByNameDefaultPropertyDelegate = new System.Action <MsgPack.Serialization.EnumMemberObject, MsgPack.Serialization.EnumByName>(this.SetUnpackedValueOfByNameDefaultProperty); this.this_UnpackValueOfByNameDefaultPropertyDelegate = new System.Action <MsgPack.Unpacker, MsgPack.Serialization.EnumMemberObject, int, int>(this.UnpackValueOfByNameDefaultProperty); this.this_SetUnpackedValueOfByUnderlyingValueByNamePropertyDelegate = new System.Action <MsgPack.Serialization.EnumMemberObject, MsgPack.Serialization.EnumByUnderlyingValue>(this.SetUnpackedValueOfByUnderlyingValueByNameProperty); this.this_UnpackValueOfByUnderlyingValueByNamePropertyDelegate = new System.Action <MsgPack.Unpacker, MsgPack.Serialization.EnumMemberObject, int, int>(this.UnpackValueOfByUnderlyingValueByNameProperty); this.this_SetUnpackedValueOfByUnderlyingValueByUnderlyingValuePropertyDelegate = new System.Action <MsgPack.Serialization.EnumMemberObject, MsgPack.Serialization.EnumByUnderlyingValue>(this.SetUnpackedValueOfByUnderlyingValueByUnderlyingValueProperty); this.this_UnpackValueOfByUnderlyingValueByUnderlyingValuePropertyDelegate = new System.Action <MsgPack.Unpacker, MsgPack.Serialization.EnumMemberObject, int, int>(this.UnpackValueOfByUnderlyingValueByUnderlyingValueProperty); this.this_SetUnpackedValueOfByUnderlyingValueDefaultPropertyDelegate = new System.Action <MsgPack.Serialization.EnumMemberObject, MsgPack.Serialization.EnumByUnderlyingValue>(this.SetUnpackedValueOfByUnderlyingValueDefaultProperty); this.this_UnpackValueOfByUnderlyingValueDefaultPropertyDelegate = new System.Action <MsgPack.Unpacker, MsgPack.Serialization.EnumMemberObject, int, int>(this.UnpackValueOfByUnderlyingValueDefaultProperty); this.this_SetUnpackedValueOfDefaultByNamePropertyDelegate = new System.Action <MsgPack.Serialization.EnumMemberObject, MsgPack.Serialization.EnumDefault>(this.SetUnpackedValueOfDefaultByNameProperty); this.this_UnpackValueOfDefaultByNamePropertyDelegate = new System.Action <MsgPack.Unpacker, MsgPack.Serialization.EnumMemberObject, int, int>(this.UnpackValueOfDefaultByNameProperty); this.this_SetUnpackedValueOfDefaultByUnderlyingValuePropertyDelegate = new System.Action <MsgPack.Serialization.EnumMemberObject, MsgPack.Serialization.EnumDefault>(this.SetUnpackedValueOfDefaultByUnderlyingValueProperty); this.this_UnpackValueOfDefaultByUnderlyingValuePropertyDelegate = new System.Action <MsgPack.Unpacker, MsgPack.Serialization.EnumMemberObject, int, int>(this.UnpackValueOfDefaultByUnderlyingValueProperty); this.this_SetUnpackedValueOfDefaultDefaultPropertyDelegate = new System.Action <MsgPack.Serialization.EnumMemberObject, MsgPack.Serialization.EnumDefault>(this.SetUnpackedValueOfDefaultDefaultProperty); this.this_UnpackValueOfDefaultDefaultPropertyDelegate = new System.Action <MsgPack.Unpacker, MsgPack.Serialization.EnumMemberObject, int, int>(this.UnpackValueOfDefaultDefaultProperty); }
/// public WindowFormRegionCollection(System.Collections.Generic.IList <Microsoft.Office.Tools.Outlook.IFormRegion> list) : base(list) { }
protected internal override MsgPack.Serialization.PolymorphicMemberTypeKnownType_List_ListPolymorphicItselfGetOnlyCollectionProperty UnpackFromCore(MsgPack.Unpacker unpacker) { MsgPack.Serialization.PolymorphicMemberTypeKnownType_List_ListPolymorphicItselfGetOnlyCollectionProperty result = default(MsgPack.Serialization.PolymorphicMemberTypeKnownType_List_ListPolymorphicItselfGetOnlyCollectionProperty); result = new MsgPack.Serialization.PolymorphicMemberTypeKnownType_List_ListPolymorphicItselfGetOnlyCollectionProperty(); if (unpacker.IsArrayHeader) { int unpacked = default(int); int itemsCount = default(int); itemsCount = MsgPack.Serialization.UnpackHelpers.GetItemsCount(unpacker); System.Collections.Generic.IList <string> nullable = default(System.Collections.Generic.IList <string>); if ((unpacked < itemsCount)) { if ((unpacker.Read() == false)) { throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(0); } if (((unpacker.IsArrayHeader == false) && (unpacker.IsMapHeader == false))) { nullable = this._serializer0.UnpackFrom(unpacker); } else { MsgPack.Unpacker disposable = default(MsgPack.Unpacker); disposable = unpacker.ReadSubtree(); try { nullable = this._serializer0.UnpackFrom(disposable); } finally { if (((disposable == null) == false)) { disposable.Dispose(); } } } } if (((nullable == null) == false)) { System.Collections.Generic.IEnumerator <string> enumerator = nullable.GetEnumerator(); string current; try { for ( ; enumerator.MoveNext(); ) { current = enumerator.Current; result.ListPolymorphicItself.Add(current); } } finally { enumerator.Dispose(); } } unpacked = (unpacked + 1); } else { int itemsCount0 = default(int); itemsCount0 = MsgPack.Serialization.UnpackHelpers.GetItemsCount(unpacker); for (int i = 0; (i < itemsCount0); i = (i + 1)) { string key = default(string); string nullable0 = default(string); nullable0 = MsgPack.Serialization.UnpackHelpers.UnpackStringValue(unpacker, typeof(MsgPack.Serialization.PolymorphicMemberTypeKnownType_List_ListPolymorphicItselfGetOnlyCollectionProperty), "MemberName"); if (((nullable0 == null) == false)) { key = nullable0; } else { throw MsgPack.Serialization.SerializationExceptions.NewNullIsProhibited("MemberName"); } if ((key == "ListPolymorphicItself")) { System.Collections.Generic.IList <string> nullable1 = default(System.Collections.Generic.IList <string>); if ((unpacker.Read() == false)) { throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(i); } if (((unpacker.IsArrayHeader == false) && (unpacker.IsMapHeader == false))) { nullable1 = this._serializer0.UnpackFrom(unpacker); } else { MsgPack.Unpacker disposable0 = default(MsgPack.Unpacker); disposable0 = unpacker.ReadSubtree(); try { nullable1 = this._serializer0.UnpackFrom(disposable0); } finally { if (((disposable0 == null) == false)) { disposable0.Dispose(); } } } if (((nullable1 == null) == false)) { System.Collections.Generic.IEnumerator <string> enumerator0 = nullable1.GetEnumerator(); string current0; try { for ( ; enumerator0.MoveNext(); ) { current0 = enumerator0.Current; result.ListPolymorphicItself.Add(current0); } } finally { enumerator0.Dispose(); } } } else { unpacker.Skip(); } } } return(result); }
} // Products.FK_Products_Suppliers public Supplier() { Products = new System.Collections.Generic.List <Product>(); InitializePartial(); }
public ConfigurationRoot(System.Collections.Generic.IList <Microsoft.Extensions.Configuration.IConfigurationProvider> providers) { }
private void init(int id , Nullable <DateTime> fecha, BaseDatosGenNHibernate.Enumerated.BaseDatos.EstadoPedidoEnum estado, BaseDatosGenNHibernate.EN.BaseDatos.UsuarioEN usuarioPedido, BaseDatosGenNHibernate.EN.BaseDatos.UsuarioEN usuarioCarrito, System.Collections.Generic.IList <BaseDatosGenNHibernate.EN.BaseDatos.LineaPedidoEN> lineaPedido, BaseDatosGenNHibernate.EN.BaseDatos.FacturaEN factura, BaseDatosGenNHibernate.EN.BaseDatos.DirEnvioEN dirEnvio, BaseDatosGenNHibernate.EN.BaseDatos.MetodoPagoEN metodoPago, BaseDatosGenNHibernate.EN.BaseDatos.EnvioEN envio) { this.Id = id; this.Fecha = fecha; this.Estado = estado; this.UsuarioPedido = usuarioPedido; this.UsuarioCarrito = usuarioCarrito; this.LineaPedido = lineaPedido; this.Factura = factura; this.DirEnvio = dirEnvio; this.MetodoPago = metodoPago; this.Envio = envio; }
private void init(string id, string nombre, string direccion, string email, System.Collections.Generic.IList<InfoCosteProgramaGenNHibernate.EN.InfoCoste.PedidoProveedorEN> pedidoProveedor) { this.Id = id; this.Nombre = nombre; this.Direccion = direccion; this.Email = email; this.PedidoProveedor = pedidoProveedor; }
public IdEnumerationExpression(System.Collections.Generic.IList <object> keys, Net.Vpc.Upa.Expressions.Var alias) { this.ids = keys; this.alias = alias; }
public VertexCoordComparer(System.Collections.Generic.IList <Vertex.Vertex> vertexes, int dimension) { this.vertexes = vertexes; this.dimension = dimension; }
public PedidoEN(int id, Nullable <DateTime> fecha, BaseDatosGenNHibernate.Enumerated.BaseDatos.EstadoPedidoEnum estado, BaseDatosGenNHibernate.EN.BaseDatos.UsuarioEN usuarioPedido, BaseDatosGenNHibernate.EN.BaseDatos.UsuarioEN usuarioCarrito, System.Collections.Generic.IList <BaseDatosGenNHibernate.EN.BaseDatos.LineaPedidoEN> lineaPedido, BaseDatosGenNHibernate.EN.BaseDatos.FacturaEN factura, BaseDatosGenNHibernate.EN.BaseDatos.DirEnvioEN dirEnvio, BaseDatosGenNHibernate.EN.BaseDatos.MetodoPagoEN metodoPago, BaseDatosGenNHibernate.EN.BaseDatos.EnvioEN envio ) { this.init(Id, fecha, estado, usuarioPedido, usuarioCarrito, lineaPedido, factura, dirEnvio, metodoPago, envio); }
/// <summary> /// Initializes a new instance of the Cookiecuttershark class. /// </summary> public Cookiecuttershark(double length, System.DateTime birthday, string species = default(string), System.Collections.Generic.IList <Fish> siblings = default(System.Collections.Generic.IList <Fish>), int?age = default(int?)) : base(length, birthday, species, siblings, age) { }
public static System.Threading.Tasks.Task <int> SendAsync(this System.Net.Sockets.Socket socket, System.Collections.Generic.IList <System.ArraySegment <byte> > buffers, System.Net.Sockets.SocketFlags socketFlags) { return(default(System.Threading.Tasks.Task <int>)); }
/// <summary> /// Update products /// </summary> /// <remarks> /// Resets products. /// </remarks> /// <param name='subscriptionId'> /// Subscription ID. /// </param> /// <param name='resourceGroupName'> /// Resource Group ID. /// </param> /// <param name='productArrayOfDictionary'> /// Array of dictionary of products /// </param> /// <param name='customHeaders'> /// Headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="ErrorException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="Microsoft.Rest.SerializationException"> /// Thrown when unable to deserialize the response /// </exception> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown when a required parameter is null /// </exception> /// <return> /// A response object containing the response body and response headers. /// </return> public async System.Threading.Tasks.Task <Microsoft.Rest.Azure.AzureOperationResponse <CatalogArray> > UpdateWithHttpMessagesAsync(string subscriptionId, string resourceGroupName, System.Collections.Generic.IList <System.Collections.Generic.IDictionary <string, Product> > productArrayOfDictionary = default(System.Collections.Generic.IList <System.Collections.Generic.IDictionary <string, Product> >), System.Collections.Generic.Dictionary <string, System.Collections.Generic.List <string> > customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { if (subscriptionId == null) { throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "subscriptionId"); } if (resourceGroupName == null) { throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); } string apiVersion = "2014-04-01-preview"; CatalogArrayOfDictionary bodyParameter = new CatalogArrayOfDictionary(); if (productArrayOfDictionary != null) { bodyParameter.ProductArrayOfDictionary = productArrayOfDictionary; } // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); System.Collections.Generic.Dictionary <string, object> tracingParameters = new System.Collections.Generic.Dictionary <string, object>(); tracingParameters.Add("subscriptionId", subscriptionId); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("bodyParameter", bodyParameter); tracingParameters.Add("cancellationToken", cancellationToken); Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "Update", tracingParameters); } // Construct URL var _baseUrl = this.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/Microsoft.Cache/Redis").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(subscriptionId)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); System.Collections.Generic.List <string> _queryParameters = new System.Collections.Generic.List <string>(); if (apiVersion != null) { _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); } if (_queryParameters.Count > 0) { _url += "?" + string.Join("&", _queryParameters); } // Create HTTP transport objects System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); System.Net.Http.HttpResponseMessage _httpResponse = null; _httpRequest.Method = new System.Net.Http.HttpMethod("PUT"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (this.GenerateClientRequestId != null && this.GenerateClientRequestId.Value) { _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } if (this.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.AcceptLanguage); } if (customHeaders != null) { foreach (var _header in customHeaders) { if (_httpRequest.Headers.Contains(_header.Key)) { _httpRequest.Headers.Remove(_header.Key); } _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); } } // Serialize Request string _requestContent = null; if (bodyParameter != null) { _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(bodyParameter, this.SerializationSettings); _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); _httpRequest.Content.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials if (this.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); await this.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) { Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; if ((int)_statusCode != 200) { var ex = new ErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); Error _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject <Error>(_responseContent, this.DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; } } catch (Newtonsoft.Json.JsonException) { // Ignore the exception } ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); if (_shouldTrace) { Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) { _httpResponse.Dispose(); } throw ex; } // Create Result var _result = new Microsoft.Rest.Azure.AzureOperationResponse <CatalogArray>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) { _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } // Deserialize Response if ((int)_statusCode == 200) { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject <CatalogArray>(_responseContent, this.DeserializationSettings); } catch (Newtonsoft.Json.JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) { _httpResponse.Dispose(); } throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); } } if (_shouldTrace) { Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); } return(_result); }
public int Send(System.Collections.Generic.IList <System.ArraySegment <byte> > buffers, System.Net.Sockets.SocketFlags socketFlags) { return(default(int)); }
/// <summary> /// <para> change the tags of an UGC item</para> /// </summary> public static bool SetItemTags(UGCUpdateHandle_t updateHandle, System.Collections.Generic.IList <string> pTags) { InteropHelp.TestIfAvailableClient(); return(NativeMethods.ISteamUGC_SetItemTags(CSteamAPIContext.GetSteamUGC(), updateHandle, new InteropHelp.SteamParamStringArray(pTags))); }
public int Send(System.Collections.Generic.IList <System.ArraySegment <byte> > buffers) { return(default(int)); }
public static void AddList <T> (System.Collections.Generic.IList <T> newList) where T : Tank { ListsToAddTo.Add(newList as System.Collections.IList); }
public ProveedorEN() { pedido = new System.Collections.Generic.List<PalmeralGenNHibernate.EN.Default_.PedidoEN>(); }
private void SetUnpackedValueOfListObjectItem(MsgPack.Serialization.PolymorphicMemberTypeRuntimeType_List_ListObjectItemReadOnlyCollectionField unpackingContext, System.Collections.Generic.IList <object> unpackedValue) { System.Collections.Generic.IList <object> existent = default(System.Collections.Generic.IList <object>); existent = unpackingContext.ListObjectItem; System.Collections.Generic.IEnumerator <object> enumerator = unpackedValue.GetEnumerator(); object current; try { for ( ; enumerator.MoveNext(); ) { current = enumerator.Current; existent.Add(current); } } finally { enumerator.Dispose(); } }
/* Called whenever any change is made that affects which * files this segment has. */ private void ClearFiles() { files = null; sizeInBytes = - 1; }
public TratamientosEN() { cobros = new System.Collections.Generic.List<VeterinaryManagerGenNHibernate.EN.VeterinaryManager.CobrosEN>(); }
public virtual void SetProducts(System.Collections.Generic.IList<NeoDatis.Odb.Test.VO.Arraycollectionmap.Catalog.Product > products) { this.products = products; }
public PartialViewResult ForUser(User user) { System.Collections.Generic.IList <Article> articles = _userService.GetAll <Article>(user); return(PartialView(articles)); }
public ProveedorEN() { pedidoProveedor = new System.Collections.Generic.List<InfoCosteProgramaGenNHibernate.EN.InfoCoste.PedidoProveedorEN>(); }
public static void MessageTokensAdded <U>(this IEventPublisher eventPublisher, MessageTemplate message, System.Collections.Generic.IList <U> tokens) { eventPublisher.Publish(new MessageTokensAddedEvent <U>(message, tokens)); }
/// <summary> /// Construct a ValidateCommandVisitor that adds elements to be validated to the specified list. /// </summary> public ValidateCommandVisitor(System.Collections.Generic.IList<DslModeling::ModelElement> elementList) { this.validationList = elementList; }
private void DeletePendingFiles() { if (deletable != null) { System.Collections.Generic.IList<string> oldDeletable = deletable; deletable = null; int size = oldDeletable.Count; for (int i = 0; i < size; i++) { if (infoStream != null) { Message("delete pending file " + oldDeletable[i]); } DeleteFile(oldDeletable[i]); } } }
private void init(int id, string nombre, string descripcion, string foto, EnMiNeveraGenNHibernate.EN.EnMiNevera.UsuarioEN usuario, System.Collections.Generic.IList<EnMiNeveraGenNHibernate.EN.EnMiNevera.LineaIngredienteEN> lineasIngrediente, System.Collections.Generic.IList<EnMiNeveraGenNHibernate.EN.EnMiNevera.PasosEN> pasos, System.Collections.Generic.IList<EnMiNeveraGenNHibernate.EN.EnMiNevera.LineaListaCompraEN> lineasListaCompra, System.Collections.Generic.IList<EnMiNeveraGenNHibernate.EN.EnMiNevera.ComentarioEN> comentarios, System.Collections.Generic.IList<EnMiNeveraGenNHibernate.EN.EnMiNevera.UsuarioEN> usuariosFavorito, TimeSpan fechaCreacion, EnMiNeveraGenNHibernate.Enumerated.EnMiNevera.EstadosEnum estado) { this.Id = id; this.Nombre = nombre; this.Descripcion = descripcion; this.Foto = foto; this.Usuario = usuario; this.LineasIngrediente = lineasIngrediente; this.Pasos = pasos; this.LineasListaCompra = lineasListaCompra; this.Comentarios = comentarios; this.UsuariosFavorito = usuariosFavorito; this.FechaCreacion = fechaCreacion; this.Estado = estado; }
public PedidoEN() { lineaPedido = new System.Collections.Generic.List <BaseDatosGenNHibernate.EN.BaseDatos.LineaPedidoEN>(); }
internal void DeleteFile(System.String fileName) { try { if (infoStream != null) { Message("delete \"" + fileName + "\""); } directory.DeleteFile(fileName); } catch (System.IO.IOException e) { // if delete fails if (directory.FileExists(fileName)) { // Some operating systems (e.g. Windows) don't // permit a file to be deleted while it is opened // for read (e.g. by another process or thread). So // we assume that when a delete fails it is because // the file is open in another process, and queue // the file for subsequent deletion. if (infoStream != null) { Message("IndexFileDeleter: unable to remove file \"" + fileName + "\": " + e.ToString() + "; Will re-try later."); } if (deletable == null) { deletable = new System.Collections.Generic.List<string>(); } deletable.Add(fileName); // add to deletable } } }
public DefaultExpressionDeclarationList(Net.Vpc.Upa.Impl.Uql.DefaultExpressionDeclarationList parentDeclaration) { exportedDeclarations = new System.Collections.Generic.List <Net.Vpc.Upa.Impl.Uql.ExpressionDeclaration>(); this.parentDeclaration = parentDeclaration; }
public ClienteEN() { parteIntervencion = new System.Collections.Generic.List<InfoCosteProgramaGenNHibernate.EN.InfoCoste.ParteIntervencionEN>(); pedidoCliente = new System.Collections.Generic.List<InfoCosteProgramaGenNHibernate.EN.InfoCoste.PedidoClienteEN>(); }
public void TEST_1() { //авторизация driver.Navigate().GoToUrl("http://teeda.mgates.ru/game/"); driver.FindElement(By.Name("login")).Click(); driver.FindElement(By.Name("login")).SendKeys("Чапаев24"); driver.FindElement(By.Name("password")).Click(); driver.FindElement(By.Name("password")).SendKeys("Чапаев24"); driver.FindElement(By.ClassName("sbm")).Click(); driver.Navigate().GoToUrl("http://teeda.mgates.ru/game/"); driver.FindElement(By.LinkText("Создать героя")).Click(); //задаём имя герою driver.FindElement(By.Id("Login")).SendKeys("Пифия"); //расу IWebElement selectElem1 = driver.FindElement(By.Id("Race")); SelectElement select1 = new SelectElement(selectElem1); System.Collections.Generic.IList <OpenQA.Selenium.IWebElement> options1 = select1.Options; select1.SelectByText("Атланты"); //класс IWebElement selectElem2 = driver.FindElement(By.Id("Class")); SelectElement select2 = new SelectElement(selectElem2); System.Collections.Generic.IList <OpenQA.Selenium.IWebElement> options2 = select2.Options; select2.SelectByText("маг"); //пол IWebElement selectElem3 = driver.FindElement(By.Id("Sex")); SelectElement select3 = new SelectElement(selectElem3); System.Collections.Generic.IList <OpenQA.Selenium.IWebElement> options3 = select3.Options; select3.SelectByText("Женский"); //создаем героя driver.FindElement(By.ClassName("butt")).Click(); //продолжить driver.FindElement(By.ClassName("butt")).Click(); //взять кинжал driver.FindElement(By.ClassName("butt")).Click(); //продолжить driver.FindElement(By.ClassName("butt")).Click(); //сразиться driver.FindElement(By.ClassName("butt")).Click(); driver.FindElement(By.PartialLinkText("бить")).Click(); driver.FindElement(By.PartialLinkText("сфера атаки")).Click(); driver.FindElement(By.PartialLinkText("покинуть бой")).Click(); //продолжить driver.FindElement(By.ClassName("butt")).Click(); //завершить driver.FindElement(By.ClassName("butt")).Click(); //приступим driver.FindElement(By.ClassName("butt")).Click(); driver.FindElement(By.PartialLinkText("Болотные дорожки")).Click(); driver.FindElement(By.PartialLinkText("взять задание")).Click(); driver.FindElement(By.PartialLinkText("Приключения")).Click(); driver.FindElement(By.PartialLinkText("Окрестности")).Click(); driver.FindElement(By.PartialLinkText("Полис Пирия - болота")).Click(); //атакуем лягушку driver.FindElement(By.XPath(@"//*[@id='containerAPI']/div[1]/div[2]/div[4]/div[1]/table/tbody/tr/td[3]/div/div[2]/a")).Click(); driver.FindElement(By.PartialLinkText("бить")).Click(); driver.FindElement(By.PartialLinkText("сфера атаки")).Click(); System.Threading.Thread.Sleep(6300); driver.FindElement(By.PartialLinkText("бить")).Click(); driver.FindElement(By.PartialLinkText("сфера атаки")).Click(); System.Threading.Thread.Sleep(6300); driver.FindElement(By.PartialLinkText("бить")).Click(); driver.FindElement(By.PartialLinkText("покинуть")).Click(); //в таверну driver.FindElement(By.PartialLinkText("главная")).Click(); driver.FindElement(By.PartialLinkText("Таверна")).Click(); driver.FindElement(By.PartialLinkText("забрать")).Click(); driver.FindElement(By.PartialLinkText("покупками")).Click(); driver.FindElement(By.PartialLinkText("взять")).Click(); driver.FindElement(By.PartialLinkText("Торговля")).Click(); driver.FindElement(By.PartialLinkText("амуниции")).Click(); driver.FindElement(By.PartialLinkText("броня")).Click(); driver.FindElement(By.XPath(@"//*[@id='containerAPI']/div[1]/div[2]/div[4]/div/table[1]/tbody/tr/td[2]/div[2]/a")).Click(); driver.FindElement(By.ClassName("but2")).Click(); driver.FindElement(By.PartialLinkText("главная")).Click(); driver.FindElement(By.PartialLinkText("Таверна")).Click(); driver.FindElement(By.PartialLinkText("забрать")).Click(); driver.FindElement(By.PartialLinkText("Одевашки")).Click(); driver.FindElement(By.PartialLinkText("взять")).Click(); driver.FindElement(By.PartialLinkText("Мешок")).Click(); driver.FindElement(By.PartialLinkText("одеть")).Click(); driver.FindElement(By.PartialLinkText("главная")).Click(); driver.FindElement(By.PartialLinkText("Таверна")).Click(); driver.FindElement(By.PartialLinkText("забрать")).Click(); driver.FindElement(By.PartialLinkText("Волков")).Click(); driver.FindElement(By.PartialLinkText("взять")).Click(); driver.FindElement(By.PartialLinkText("Приключения")).Click(); driver.FindElement(By.PartialLinkText("Охота")).Click(); driver.FindElement(By.PartialLinkText("бить")).Click(); driver.FindElement(By.PartialLinkText("покинуть бой")).Click(); driver.FindElement(By.PartialLinkText("Таверна")).Click(); driver.FindElement(By.PartialLinkText("забрать")).Click(); driver.FindElement(By.PartialLinkText("сфера")).Click(); driver.FindElement(By.PartialLinkText("взять")).Click(); driver.FindElement(By.PartialLinkText("Торговля")).Click(); driver.FindElement(By.PartialLinkText("Чародей")).Click(); driver.FindElement(By.XPath(@"//*[@id='containerAPI']/div[1]/div[2]/div[4]/div[3]/table[3]/tbody/tr/td[2]/div[2]/a")).Click(); driver.FindElement(By.ClassName("but2")).Click(); driver.FindElement(By.PartialLinkText("главная")).Click(); driver.FindElement(By.PartialLinkText("Таверна")).Click(); driver.FindElement(By.PartialLinkText("забрать")).Click(); driver.FindElement(By.PartialLinkText("на стенку")).Click(); driver.FindElement(By.PartialLinkText("взять")).Click(); driver.FindElement(By.PartialLinkText("Приключения")).Click(); driver.FindElement(By.PartialLinkText("Арена")).Click(); driver.FindElement(By.PartialLinkText("главная")).Click(); driver.FindElement(By.PartialLinkText("Таверна")).Click(); driver.FindElement(By.PartialLinkText("забрать")).Click(); driver.FindElement(By.ClassName("but3")).Click(); driver.FindElement(By.XPath(@"//*[@id='containerAPI']/div[1]/div[2]/div[4]/p[2]/a")).Click(); driver.FindElement(By.PartialLinkText("взять")).Click(); driver.FindElement(By.XPath(@"//*[@id='containerAPI']/div[1]/div[2]/div[4]/ul/li[6]/a")).Click(); driver.FindElement(By.XPath(@"//*[@id='containerAPI']/div[1]/div[2]/div[6]/form/input[2]")).Click(); driver.FindElement(By.ClassName("butt")).Click(); driver.FindElement(By.PartialLinkText("главная")).Click(); driver.FindElement(By.PartialLinkText("Таверна")).Click(); driver.FindElement(By.PartialLinkText("забрать")).Click(); driver.FindElement(By.PartialLinkText("Схватка")).Click(); driver.FindElement(By.PartialLinkText("взять")).Click(); Shvatka("Бой"); driver.FindElement(By.PartialLinkText("покинуть")).Click(); driver.FindElement(By.PartialLinkText("забрать")).Click(); driver.FindElement(By.ClassName("butt")).Click(); driver.FindElement(By.PartialLinkText("Званый ужин")).Click(); driver.FindElement(By.PartialLinkText("Скакать")).Click(); driver.FindElement(By.PartialLinkText("Приключения")).Click(); driver.FindElement(By.PartialLinkText("Окрестности")).Click(); driver.FindElement(By.PartialLinkText("Полис Пирия - болота")).Click(); while (true) { if (IsElementCon("Далее")) { if (IsElementCon("достижение")) { driver.FindElement(By.XPath(@"//*[@id='containerAPI']/div[1]/div[2]/div[4]/div[1]/table/tbody/tr/td[3]/div/div[2]/a")).Click(); } else { driver.FindElement(By.XPath(@"//*[@id='containerAPI']/div[1]/div[3]/div[4]/div[1]/table/tbody/tr/td[3]/div/div[2]/a")).Click(); } Shvatka("Ты выиграл."); driver.FindElement(By.PartialLinkText("покинуть")).Click(); } else { break; } } driver.FindElement(By.PartialLinkText("Далее")).Click(); driver.FindElement(By.PartialLinkText("Таверна")).Click(); driver.FindElement(By.PartialLinkText("Аномалия")).Click(); driver.FindElement(By.PartialLinkText("Хм")).Click(); driver.FindElement(By.PartialLinkText("Приключения")).Click(); driver.FindElement(By.PartialLinkText("Окрестности")).Click(); driver.FindElement(By.PartialLinkText("Полис Пирия - болота")).Click(); driver.FindElement(By.XPath(@"//*[@id='containerAPI']/div[1]/div[2]/div[4]/div[2]/table/tbody/tr/td[3]/div/div[2]/a")).Click(); Shvatka("Бой завершен"); driver.FindElement(By.PartialLinkText("покинуть бой")).Click(); driver.FindElement(By.PartialLinkText("главная")).Click(); driver.FindElement(By.PartialLinkText("Таверна")).Click(); driver.FindElement(By.PartialLinkText("забрать")).Click(); driver.FindElement(By.PartialLinkText("главная")).Click(); //приоденемся driver.FindElement(By.PartialLinkText("Мешок")).Click(); driver.FindElement(By.XPath(@"//*[@id='containerAPI']/div[1]/div[2]/div[4]/table[2]/tbody/tr/td[2]/div[2]/a[1]")).Click(); driver.FindElement(By.XPath(@"//*[@id='containerAPI']/div[1]/div[3]/div[4]/table[3]/tbody/tr/td[2]/div[2]/a[1]")).Click(); driver.FindElement(By.XPath(@"//*[@id='containerAPI']/div[1]/div[3]/div[4]/table[4]/tbody/tr/td[2]/div[2]/a")).Click(); driver.FindElement(By.XPath(@"//*[@id='containerAPI']/div[1]/div[3]/div[4]/table[4]/tbody/tr/td[2]/div[2]/a[1]")).Click(); driver.FindElement(By.PartialLinkText("главная")).Click(); //driver.FindElement(By.PartialLinkText("Приключения")).Click(); //driver.FindElement(By.PartialLinkText("Окрестности")).Click(); //driver.FindElement(By.PartialLinkText("Полис Пирия - болота")).Click(); //while (true) //{ // if (IsElementCon("Далее")) // { // driver.FindElement(By.XPath(@"//*[@id='containerAPI']/div[1]/div[2]/div[4]/div[3]/table/tbody/tr/td[3]/div/div[2]/a")).Click(); // Shvatka("Бой завершен"); // driver.FindElement(By.PartialLinkText("покинуть бой")).Click(); // System.Threading.Thread.Sleep(15000); // driver.Navigate().Refresh(); // } // else break; //} ////driver.FindElement(By.PartialLinkText("Далее")).Click(); ////приоденемся ////driver.FindElement(By.PartialLinkText("Мешок")).Click(); ////driver.FindElement(By.XPath(@"//*[@id='containerAPI']/div[1]/div[2]/div[4]/table[2]/tbody/tr/td[2]/div[2]/a[1]")).Click(); //driver.Navigate().GoToUrl("http://teeda.mgates.ru/game/"); driver.FindElement(By.PartialLinkText("Приключения")).Click(); driver.FindElement(By.PartialLinkText("Окрестности")).Click(); driver.FindElement(By.PartialLinkText("Полис Пирия - болота")).Click(); for (int i = 0; i < 8; i++) { driver.FindElement(By.XPath(@"//*[@id='containerAPI']/div[1]/div[2]/div[4]/div[3]/table/tbody/tr/td[3]/div/div[2]/a")).Click(); Shvatka("Бой завершен"); driver.FindElement(By.PartialLinkText("покинуть бой")).Click(); System.Threading.Thread.Sleep(15000); driver.Navigate().Refresh(); } driver.FindElement(By.PartialLinkText("приключения")).Click(); driver.FindElement(By.PartialLinkText("Штурм")).Click(); Shvatka("воскреснуть"); driver.FindElement(By.PartialLinkText("воскреснуть")).Click(); driver.FindElement(By.PartialLinkText("главная")).Click(); System.Threading.Thread.Sleep(15000); driver.Navigate().Refresh(); }
public MsgPack_Serialization_PolymorphicMemberTypeRuntimeType_Tuple_Tuple7AllStaticReadOnlyFieldAndConstructorSerializer(MsgPack.Serialization.SerializationContext context) : base(context, (MsgPack.Serialization.SerializerCapabilities.PackTo | MsgPack.Serialization.SerializerCapabilities.UnpackFrom)) { MsgPack.Serialization.PolymorphismSchema schema0 = default(MsgPack.Serialization.PolymorphismSchema); MsgPack.Serialization.PolymorphismSchema[] tupleItemsSchema0 = default(MsgPack.Serialization.PolymorphismSchema[]); tupleItemsSchema0 = new MsgPack.Serialization.PolymorphismSchema[7]; MsgPack.Serialization.PolymorphismSchema tupleItemSchema0 = default(MsgPack.Serialization.PolymorphismSchema); tupleItemSchema0 = null; tupleItemsSchema0[0] = tupleItemSchema0; MsgPack.Serialization.PolymorphismSchema tupleItemSchema1 = default(MsgPack.Serialization.PolymorphismSchema); tupleItemSchema1 = null; tupleItemsSchema0[1] = tupleItemSchema1; MsgPack.Serialization.PolymorphismSchema tupleItemSchema2 = default(MsgPack.Serialization.PolymorphismSchema); tupleItemSchema2 = null; tupleItemsSchema0[2] = tupleItemSchema2; MsgPack.Serialization.PolymorphismSchema tupleItemSchema3 = default(MsgPack.Serialization.PolymorphismSchema); tupleItemSchema3 = null; tupleItemsSchema0[3] = tupleItemSchema3; MsgPack.Serialization.PolymorphismSchema tupleItemSchema4 = default(MsgPack.Serialization.PolymorphismSchema); tupleItemSchema4 = null; tupleItemsSchema0[4] = tupleItemSchema4; MsgPack.Serialization.PolymorphismSchema tupleItemSchema5 = default(MsgPack.Serialization.PolymorphismSchema); tupleItemSchema5 = null; tupleItemsSchema0[5] = tupleItemSchema5; MsgPack.Serialization.PolymorphismSchema tupleItemSchema6 = default(MsgPack.Serialization.PolymorphismSchema); tupleItemSchema6 = null; tupleItemsSchema0[6] = tupleItemSchema6; schema0 = MsgPack.Serialization.PolymorphismSchema.ForPolymorphicTuple(typeof(System.Tuple <string, string, string, string, string, string, string>), tupleItemsSchema0); this._serializer0 = context.GetSerializer <System.Tuple <string, string, string, string, string, string, string> >(schema0); System.Action <MsgPack.Packer, MsgPack.Serialization.PolymorphicMemberTypeRuntimeType_Tuple_Tuple7AllStaticReadOnlyFieldAndConstructor>[] packOperationList = default(System.Action <MsgPack.Packer, MsgPack.Serialization.PolymorphicMemberTypeRuntimeType_Tuple_Tuple7AllStaticReadOnlyFieldAndConstructor>[]); packOperationList = new System.Action <MsgPack.Packer, MsgPack.Serialization.PolymorphicMemberTypeRuntimeType_Tuple_Tuple7AllStaticReadOnlyFieldAndConstructor> [1]; packOperationList[0] = new System.Action <MsgPack.Packer, MsgPack.Serialization.PolymorphicMemberTypeRuntimeType_Tuple_Tuple7AllStaticReadOnlyFieldAndConstructor>(this.PackValueOfTuple7AllStatic); this._packOperationList = packOperationList; System.Func <MsgPack.Packer, MsgPack.Serialization.PolymorphicMemberTypeRuntimeType_Tuple_Tuple7AllStaticReadOnlyFieldAndConstructor, System.Threading.CancellationToken, System.Threading.Tasks.Task>[] packOperationListAsync = default(System.Func <MsgPack.Packer, MsgPack.Serialization.PolymorphicMemberTypeRuntimeType_Tuple_Tuple7AllStaticReadOnlyFieldAndConstructor, System.Threading.CancellationToken, System.Threading.Tasks.Task>[]); packOperationListAsync = new System.Func <MsgPack.Packer, MsgPack.Serialization.PolymorphicMemberTypeRuntimeType_Tuple_Tuple7AllStaticReadOnlyFieldAndConstructor, System.Threading.CancellationToken, System.Threading.Tasks.Task> [1]; packOperationListAsync[0] = new System.Func <MsgPack.Packer, MsgPack.Serialization.PolymorphicMemberTypeRuntimeType_Tuple_Tuple7AllStaticReadOnlyFieldAndConstructor, System.Threading.CancellationToken, System.Threading.Tasks.Task>(this.PackValueOfTuple7AllStaticAsync); this._packOperationListAsync = packOperationListAsync; System.Collections.Generic.Dictionary <string, System.Action <MsgPack.Packer, MsgPack.Serialization.PolymorphicMemberTypeRuntimeType_Tuple_Tuple7AllStaticReadOnlyFieldAndConstructor> > packOperationTable = default(System.Collections.Generic.Dictionary <string, System.Action <MsgPack.Packer, MsgPack.Serialization.PolymorphicMemberTypeRuntimeType_Tuple_Tuple7AllStaticReadOnlyFieldAndConstructor> >); packOperationTable = new System.Collections.Generic.Dictionary <string, System.Action <MsgPack.Packer, MsgPack.Serialization.PolymorphicMemberTypeRuntimeType_Tuple_Tuple7AllStaticReadOnlyFieldAndConstructor> >(1); packOperationTable["Tuple7AllStatic"] = new System.Action <MsgPack.Packer, MsgPack.Serialization.PolymorphicMemberTypeRuntimeType_Tuple_Tuple7AllStaticReadOnlyFieldAndConstructor>(this.PackValueOfTuple7AllStatic); this._packOperationTable = packOperationTable; System.Collections.Generic.Dictionary <string, System.Func <MsgPack.Packer, MsgPack.Serialization.PolymorphicMemberTypeRuntimeType_Tuple_Tuple7AllStaticReadOnlyFieldAndConstructor, System.Threading.CancellationToken, System.Threading.Tasks.Task> > packOperationTableAsync = default(System.Collections.Generic.Dictionary <string, System.Func <MsgPack.Packer, MsgPack.Serialization.PolymorphicMemberTypeRuntimeType_Tuple_Tuple7AllStaticReadOnlyFieldAndConstructor, System.Threading.CancellationToken, System.Threading.Tasks.Task> >); packOperationTableAsync = new System.Collections.Generic.Dictionary <string, System.Func <MsgPack.Packer, MsgPack.Serialization.PolymorphicMemberTypeRuntimeType_Tuple_Tuple7AllStaticReadOnlyFieldAndConstructor, System.Threading.CancellationToken, System.Threading.Tasks.Task> >(1); packOperationTableAsync["Tuple7AllStatic"] = new System.Func <MsgPack.Packer, MsgPack.Serialization.PolymorphicMemberTypeRuntimeType_Tuple_Tuple7AllStaticReadOnlyFieldAndConstructor, System.Threading.CancellationToken, System.Threading.Tasks.Task>(this.PackValueOfTuple7AllStaticAsync); this._packOperationTableAsync = packOperationTableAsync; System.Collections.Generic.Dictionary <string, System.Func <MsgPack.Serialization.PolymorphicMemberTypeRuntimeType_Tuple_Tuple7AllStaticReadOnlyFieldAndConstructor, bool> > nullCheckerTable = default(System.Collections.Generic.Dictionary <string, System.Func <MsgPack.Serialization.PolymorphicMemberTypeRuntimeType_Tuple_Tuple7AllStaticReadOnlyFieldAndConstructor, bool> >); nullCheckerTable = new System.Collections.Generic.Dictionary <string, System.Func <MsgPack.Serialization.PolymorphicMemberTypeRuntimeType_Tuple_Tuple7AllStaticReadOnlyFieldAndConstructor, bool> >(1); nullCheckerTable["Tuple7AllStatic"] = new System.Func <MsgPack.Serialization.PolymorphicMemberTypeRuntimeType_Tuple_Tuple7AllStaticReadOnlyFieldAndConstructor, bool>(this.IsTuple7AllStaticNull); this._nullCheckersTable = nullCheckerTable; System.Action <MsgPack.Unpacker, UnpackingContext, int, int>[] unpackOperationList = default(System.Action <MsgPack.Unpacker, UnpackingContext, int, int>[]); unpackOperationList = new System.Action <MsgPack.Unpacker, UnpackingContext, int, int> [1]; unpackOperationList[0] = new System.Action <MsgPack.Unpacker, UnpackingContext, int, int>(this.UnpackValueOfTuple7AllStatic); this._unpackOperationList = unpackOperationList; System.Func <MsgPack.Unpacker, UnpackingContext, int, int, System.Threading.CancellationToken, System.Threading.Tasks.Task>[] unpackOperationListAsync = default(System.Func <MsgPack.Unpacker, UnpackingContext, int, int, System.Threading.CancellationToken, System.Threading.Tasks.Task>[]); unpackOperationListAsync = new System.Func <MsgPack.Unpacker, UnpackingContext, int, int, System.Threading.CancellationToken, System.Threading.Tasks.Task> [1]; unpackOperationListAsync[0] = new System.Func <MsgPack.Unpacker, UnpackingContext, int, int, System.Threading.CancellationToken, System.Threading.Tasks.Task>(this.UnpackValueOfTuple7AllStaticAsync); this._unpackOperationListAsync = unpackOperationListAsync; System.Collections.Generic.Dictionary <string, System.Action <MsgPack.Unpacker, UnpackingContext, int, int> > unpackOperationTable = default(System.Collections.Generic.Dictionary <string, System.Action <MsgPack.Unpacker, UnpackingContext, int, int> >); unpackOperationTable = new System.Collections.Generic.Dictionary <string, System.Action <MsgPack.Unpacker, UnpackingContext, int, int> >(1); unpackOperationTable["Tuple7AllStatic"] = new System.Action <MsgPack.Unpacker, UnpackingContext, int, int>(this.UnpackValueOfTuple7AllStatic); this._unpackOperationTable = unpackOperationTable; System.Collections.Generic.Dictionary <string, System.Func <MsgPack.Unpacker, UnpackingContext, int, int, System.Threading.CancellationToken, System.Threading.Tasks.Task> > unpackOperationTableAsync = default(System.Collections.Generic.Dictionary <string, System.Func <MsgPack.Unpacker, UnpackingContext, int, int, System.Threading.CancellationToken, System.Threading.Tasks.Task> >); unpackOperationTableAsync = new System.Collections.Generic.Dictionary <string, System.Func <MsgPack.Unpacker, UnpackingContext, int, int, System.Threading.CancellationToken, System.Threading.Tasks.Task> >(1); unpackOperationTableAsync["Tuple7AllStatic"] = new System.Func <MsgPack.Unpacker, UnpackingContext, int, int, System.Threading.CancellationToken, System.Threading.Tasks.Task>(this.UnpackValueOfTuple7AllStaticAsync); this._unpackOperationTableAsync = unpackOperationTableAsync; this._memberNames = new string[] { "Tuple7AllStatic" }; this.this_CreateInstanceFromContextDelegate = new System.Func <UnpackingContext, MsgPack.Serialization.PolymorphicMemberTypeRuntimeType_Tuple_Tuple7AllStaticReadOnlyFieldAndConstructor>(this.CreateInstanceFromContext); this.this_SetUnpackedValueOfTuple7AllStaticDelegate = new System.Action <UnpackingContext, System.Tuple <string, string, string, string, string, string, string> >(this.SetUnpackedValueOfTuple7AllStatic); }
public virtual System.Collections.Generic.IList <Net.Vpc.Upa.Impl.Uql.ExpressionDeclaration> GetExportedDeclarations() { System.Collections.Generic.IList <Net.Vpc.Upa.Impl.Uql.ExpressionDeclaration> emptyList = Net.Vpc.Upa.Impl.Util.PlatformUtils.EmptyList <T>(); return(exportedDeclarations == null ? emptyList : exportedDeclarations); }
/// <summary> /// Initialization and find out a slab's Level, Type name, and set the Span Direction properties. /// </summary> /// <param name="revit">The revit object for the active instance of Autodesk Revit.</param> /// <returns>A value that signifies if your initialization was successful for true or failed for false.</returns> private bool Initialize(Autodesk.Revit.UI.UIApplication revit) { m_slabComponent = revit.ActiveUIDocument.Selection.Elements; m_document = revit.ActiveUIDocument.Document; // There must be exactly one slab selected if (m_slabComponent.IsEmpty) { // nothing selected MessageBox.Show("Please select a slab."); return false; } else if (1 != m_slabComponent.Size) { // too many things selected MessageBox.Show("Please select only one slab."); return false; } foreach (Element e in m_slabComponent) { // If the element isn't a slab, give the message and return failure. // Else find out its Level, Type name, and set the Span Direction properties. if ("Autodesk.Revit.DB.Floor" != e.GetType().ToString()) { MessageBox.Show("A slab should be selected."); return false; } // Change the element type to floor type m_slabFloor = e as Floor; // Get the layer information from the type object by using the CompoundStructure property // The Layers property is then used to retrieve all the layers m_slabLayerCollection = m_slabFloor.FloorType.GetCompoundStructure().GetLayers(); m_numberOfLayers = m_slabLayerCollection.Count; // Get the Level property by the floor's Level property m_level = m_slabFloor.Level.Name; // Get the Type name property by the floor's FloorType property m_typeName = m_slabFloor.FloorType.Name; // The span direction can be found using generic parameter access // using the built in parameter FLOOR_PARAM_SPAN_DIRECTION Parameter spanDirectionAttribute; spanDirectionAttribute = m_slabFloor.get_Parameter(BuiltInParameter.FLOOR_PARAM_SPAN_DIRECTION); if (null != spanDirectionAttribute) { // Set the Span Direction property this.SetSpanDirection(spanDirectionAttribute.AsDouble()); } } return true; }
private void init(int usuarioID , String password, string mail, string fotoperfil, string nombre, System.Collections.Generic.IList <BookReViewGenNHibernate.EN.BookReview.SolicitudEN> solicitudesRealizadas, System.Collections.Generic.IList <BookReViewGenNHibernate.EN.BookReview.SolicitudEN> solicitudesRecibidas, System.Collections.Generic.IList <BookReViewGenNHibernate.EN.BookReview.Club_lecEN> clubs, System.Collections.Generic.IList <BookReViewGenNHibernate.EN.BookReview.CompraEN> pasarelaPago, System.Collections.Generic.IList <BookReViewGenNHibernate.EN.BookReview.ComentarioEN> comentario, System.Collections.Generic.IList <BookReViewGenNHibernate.EN.BookReview.LibroEN> libros, System.Collections.Generic.IList <BookReViewGenNHibernate.EN.BookReview.LibroEN> librosCreado, double dineroventa, System.Collections.Generic.IList <BookReViewGenNHibernate.EN.BookReview.PuntuacionEN> puntuacion, System.Collections.Generic.IList <BookReViewGenNHibernate.EN.BookReview.ListaEN> listaTipo) { this.UsuarioID = usuarioID; this.Password = password; this.Mail = mail; this.Fotoperfil = fotoperfil; this.Nombre = nombre; this.SolicitudesRealizadas = solicitudesRealizadas; this.SolicitudesRecibidas = solicitudesRecibidas; this.Clubs = clubs; this.PasarelaPago = pasarelaPago; this.Comentario = comentario; this.Libros = libros; this.LibrosCreado = librosCreado; this.Dineroventa = dineroventa; this.Puntuacion = puntuacion; this.ListaTipo = listaTipo; }