Пример #1
0
 /// <summary>
 ///     Initialize a new instance with an initial value from <paramref name="basis" />.
 /// </summary>
 /// <param name="apiVersion">The requested API version.</param>
 /// <param name="handler">The <see cref="EventHandler" /> delegate to invoke if the <see cref="AHandlerElement" /> changes.</param>
 /// <param name="basis">Element containing the initial value for instance.</param>
 /// <param name="ParentTGIBlocks">
 ///     Reference to list into which this is an index, or null to use that in
 ///     <paramref name="basis" />.
 /// </param>
 public TGIBlockListIndex(int apiVersion,
                          EventHandler handler,
                          TGIBlockListIndex <T> basis,
                          DependentList <TGIBlock> ParentTGIBlocks = null)
     : this(apiVersion, handler, basis.data, ParentTGIBlocks ?? basis.ParentTGIBlocks)
 {
 }
Пример #2
0
 /// <summary>
 /// Initialize a new instance with an initial value of <paramref name="value"/>.
 /// </summary>
 /// <param name="APIversion">The requested API version.</param>
 /// <param name="handler">The <see cref="EventHandler"/> delegate to invoke if the <see cref="AHandlerElement"/> changes.</param>
 /// <param name="value">Initial value for instance.</param>
 /// <param name="ParentTGIBlocks">Reference to list into which this is an index.</param>
 public TGIBlockListIndex(int APIversion, EventHandler handler, T value, DependentList <TGIBlock> ParentTGIBlocks = null)
     : base(APIversion, handler)
 {
     this.ParentTGIBlocks = ParentTGIBlocks; data = value;
 }
Пример #3
0
 /// <summary>
 /// Initialize a new instance with a default value.
 /// </summary>
 /// <param name="APIversion">The requested API version.</param>
 /// <param name="handler">The <see cref="EventHandler"/> delegate to invoke if the <see cref="AHandlerElement"/> changes.</param>
 /// <param name="ParentTGIBlocks">Reference to list into which this is an index.</param>
 public TGIBlockListIndex(int APIversion, EventHandler handler, DependentList <TGIBlock> ParentTGIBlocks = null)
     : this(APIversion, handler, default(T), ParentTGIBlocks)
 {
 }