Esempio n. 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)
 {
 }
Esempio n. 2
0
 /// <summary>
 /// Indicates whether the current object is equal to another object of the same type.
 /// </summary>
 /// <param name="other">An object to compare with this object.</param>
 /// <returns>true if the current object is equal to the other parameter; otherwise, false.</returns>
 public bool Equals(TGIBlockListIndex <T> other)
 {
     return(data.Equals(other.data));
 }