How to get a list of Interface members
<p>Is there a way to get a list of interface members? I know about System.Reflection.MemberInfo, but it includes everything in an object, not just a certain interface.</p>

<p>Here is the program, I'm not sure how to get you the interface as I didn't write it, but it is part of the Ascom Standard (<a href="http://ascom-standards.org/" rel="nofollow">http://ascom-standards.org</a>).</p>

<pre><code>public static void Test1()
{
    Console.WriteLine("mark1"); // this shows up...
    var type = typeof(Ascom.Interface.ITelescope);
    var members = type.GetMembers();
    Console.WriteLine(members.Count); // gives 0
    foreach (var member in members)
    {
        Console.WriteLine(member.Name); //nothing from here
    }
    Console.WriteLine("mark4"); // ...as well as this
}
</code></pre>
