1
// ****************************************************************
2
// Copyright 2002-2003, Charlie Poole
3
// This is free software licensed under the NUnit license. You may
4
// obtain a copy of the license at http://nunit.org
5
// ****************************************************************
8
using System.Collections;
13
/// A simple collection to hold VSProjectConfigs. Originally,
14
/// we used the (NUnit) ProjectConfigCollection, but the
15
/// classes have since diverged.
17
public class VSProjectConfigCollection : CollectionBase
19
public VSProjectConfig this[int index]
21
get { return List[index] as VSProjectConfig; }
24
public VSProjectConfig this[string name]
28
foreach ( VSProjectConfig config in InnerList )
29
if ( config.Name == name ) return config;
35
public void Add( VSProjectConfig config )
40
public bool Contains( string name )
42
foreach( VSProjectConfig config in InnerList )
43
if ( config.Name == name ) return true;
1
// ****************************************************************
2
// Copyright 2002-2003, Charlie Poole
3
// This is free software licensed under the NUnit license. You may
4
// obtain a copy of the license at http://nunit.org
5
// ****************************************************************
8
using System.Collections;
13
/// A simple collection to hold VSProjectConfigs. Originally,
14
/// we used the (NUnit) ProjectConfigCollection, but the
15
/// classes have since diverged.
17
public class VSProjectConfigCollection : CollectionBase
19
public VSProjectConfig this[int index]
21
get { return List[index] as VSProjectConfig; }
24
public VSProjectConfig this[string name]
28
foreach ( VSProjectConfig config in InnerList )
29
if ( config.Name == name ) return config;
35
public void Add( VSProjectConfig config )
40
public bool Contains( string name )
42
foreach( VSProjectConfig config in InnerList )
43
if ( config.Name == name ) return true;