Rev | Line | |
---|
[2769] | 1 | using System;
|
---|
| 2 | using System.Collections;
|
---|
| 3 |
|
---|
| 4 | namespace Netron.GraphLib.IO.NML
|
---|
| 5 | {
|
---|
| 6 | /// <summary>
|
---|
| 7 | /// STC of FromTo collection, related to deserailization of connections
|
---|
| 8 | /// </summary>
|
---|
| 9 | public class FromToCollection : CollectionBase
|
---|
| 10 | {
|
---|
| 11 | /// <summary>
|
---|
| 12 | /// integer indexer
|
---|
| 13 | /// </summary>
|
---|
| 14 | public FromTo this[int index]
|
---|
| 15 | {
|
---|
| 16 | get{return (FromTo) this.InnerList[index] ;}
|
---|
| 17 | }
|
---|
| 18 |
|
---|
| 19 | /// <summary>
|
---|
| 20 | /// Adds an item to the collection
|
---|
| 21 | /// </summary>
|
---|
| 22 | /// <param name="ft">a ParentChild object</param>
|
---|
| 23 | /// <returns></returns>
|
---|
| 24 | public int Add(FromTo ft)
|
---|
| 25 | {
|
---|
| 26 | return this.InnerList.Add(ft);
|
---|
| 27 | }
|
---|
| 28 | }
|
---|
| 29 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.