Loop through Win7 Libraries

I have a VB app that is moving to C# and .NET 4.5 The VB code can iterate through the list of Windows Libraries (default and user created)

For Each objLibrary As Windows7Libraries.Win7Library In Windows7Libraries.Win7Libraries.GetLibraries Console.WriteLine(objLibrary.Name) Next objLibrary 

However I cannot convert this code to C#. I feel like I am missing something simple. I looked at the references for the VB project and nothing is standing out.

Thoughts?

by JamesWjRose via /r/csharp

Leave a Reply