NAnt SDK Documentation - v0.92 |

# CompilerWarningCollection.GetEnumerator Method

Returns an enumerator that can iterate through the collection.

[Visual Basic]
Public Function GetEnumerator() As CompilerWarningEnumerator
[C#]
new public CompilerWarningEnumerator GetEnumerator();

#### Return Value

A CompilerWarningEnumerator for the entire collection.

#### See Also

CompilerWarningCollection Class | NAnt.DotNet.Types Namespace