-
Notifications
You must be signed in to change notification settings - Fork 11
/
ItemVersionSettingCollection.cs
50 lines (45 loc) · 1.72 KB
/
ItemVersionSettingCollection.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// <copyright file="ItemVersionSettingCollection.cs" company="Engage Software">
// Engage: Publish
// Copyright (c) 2004-2013
// by Engage Software ( http://www.engagesoftware.com )
// </copyright>
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
// TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
// CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
namespace Engage.Dnn.Publish
{
using System.Collections.ObjectModel;
/// <summary>
/// Summary description for ItemRelationshipCollection.
/// </summary>
public class ItemVersionSettingCollection : Collection<ItemVersionSetting>
{
// public void Add(ItemVersionSetting r)
// {
// Debug.Assert(r != null, "r cannot be null");
// base.InnerList.Add(r);
// }
// public void Remove(ItemVersionSetting r)
// {
// base.InnerList.Remove(r);
// }
// public ItemVersionSetting this[int index]
// {
// get { return (ItemVersionSetting)base.InnerList[index]; }
// }
public ItemVersionSetting this[ItemVersionSetting index]
{
get
{
int settingIndex = this.IndexOf(index);
if (settingIndex > -1)
{
return this[settingIndex];
}
return null;
}
}
}
}