#region License
#endregion
#region Using Statements
using
System.Collections;
using
System.Collections.Generic;
#endregion
namespace
Microsoft.Xna.Framework.Graphics
{
public
sealed
class
EffectAnnotationCollection : IEnumerable<EffectAnnotation>, IEnumerable
{
#region Public Properties
public
int
Count
{
get
{
return
elements.Count;
}
}
public
EffectAnnotation
this
[
int
index]
{
get
{
return
elements[index];
}
}
public
EffectAnnotation
this
[
string
name]
{
get
{
foreach
(EffectAnnotation elem
in
elements)
{
if
(name.Equals(elem.Name))
{
return
elem;
}
}
return
null
;
}
}
#endregion
#region Private Variables
private
List<EffectAnnotation> elements;
#endregion
#region Internal Constructor
internal
EffectAnnotationCollection(List<EffectAnnotation> value)
{
elements = value;
}
#endregion
#region Public Methods
public
List<EffectAnnotation>.Enumerator GetEnumerator()
{
return
elements.GetEnumerator();
}
#endregion
#region IEnumerator Methods
IEnumerator System.Collections.IEnumerable.GetEnumerator()
{
return
elements.GetEnumerator();
}
IEnumerator<EffectAnnotation> System.Collections.Generic.IEnumerable<EffectAnnotation>.GetEnumerator()
{
return
elements.GetEnumerator();
}
#endregion
}
}