Rev | Line | |
---|
[2769] | 1 | using System;
|
---|
| 2 |
|
---|
| 3 | namespace Netron.GraphLib.IO.GraphML
|
---|
| 4 | {
|
---|
| 5 | /// <summary>
|
---|
| 6 | /// Summary description for ItemCollection.
|
---|
| 7 | /// </summary>
|
---|
| 8 | public class ItemCollection : System.Collections.CollectionBase
|
---|
| 9 | {
|
---|
| 10 |
|
---|
| 11 | /// <summary />
|
---|
| 12 | /// <remarks />
|
---|
| 13 | public ItemCollection()
|
---|
| 14 | {
|
---|
| 15 | }
|
---|
| 16 |
|
---|
| 17 | /// <summary />
|
---|
| 18 | /// <remarks />
|
---|
| 19 | public virtual object this[int index]
|
---|
| 20 | {
|
---|
| 21 | get
|
---|
| 22 | {
|
---|
| 23 | return this.List[index];
|
---|
| 24 | }
|
---|
| 25 | set
|
---|
| 26 | {
|
---|
| 27 | this.List[index] = value;
|
---|
| 28 | }
|
---|
| 29 | }
|
---|
| 30 |
|
---|
| 31 | /// <summary />
|
---|
| 32 | /// <remarks />
|
---|
| 33 | public virtual void Add(object o)
|
---|
| 34 | {
|
---|
| 35 | this.List.Add(o);
|
---|
| 36 | }
|
---|
| 37 |
|
---|
| 38 | /// <summary />
|
---|
| 39 | /// <remarks />
|
---|
| 40 | public virtual void AddGraph(GraphType _graph)
|
---|
| 41 | {
|
---|
| 42 | this.List.Add(_graph);
|
---|
| 43 | }
|
---|
| 44 |
|
---|
| 45 | /// <summary />
|
---|
| 46 | /// <remarks />
|
---|
| 47 | public virtual bool ContainsGraph(GraphType _graph)
|
---|
| 48 | {
|
---|
| 49 | return this.List.Contains(_graph);
|
---|
| 50 | }
|
---|
| 51 |
|
---|
| 52 | /// <summary />
|
---|
| 53 | /// <remarks />
|
---|
| 54 | public virtual void RemoveGraph(GraphType _graph)
|
---|
| 55 | {
|
---|
| 56 | this.List.Remove(_graph);
|
---|
| 57 | }
|
---|
| 58 |
|
---|
| 59 | /// <summary />
|
---|
| 60 | /// <remarks />
|
---|
| 61 | public virtual void AddData(DataType _data)
|
---|
| 62 | {
|
---|
| 63 | this.List.Add(_data);
|
---|
| 64 | }
|
---|
| 65 |
|
---|
| 66 | /// <summary />
|
---|
| 67 | /// <remarks />
|
---|
| 68 | public virtual bool ContainsData(DataType _data)
|
---|
| 69 | {
|
---|
| 70 | return this.List.Contains(_data);
|
---|
| 71 | }
|
---|
| 72 |
|
---|
| 73 | /// <summary />
|
---|
| 74 | /// <remarks />
|
---|
| 75 | public virtual void RemoveData(DataType _data)
|
---|
| 76 | {
|
---|
| 77 | this.List.Remove(_data);
|
---|
| 78 | }
|
---|
| 79 | }
|
---|
| 80 |
|
---|
| 81 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.