// Collection of code snippets by Arne Vajhøj // (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) using System; namespace E { public interface I1 { void M(); } internal interface I2 { void M(); } interface I3 { void M(); } public class Program { public static void Main(string[] args) { Console.WriteLine(typeof(I1).IsPublic); Console.WriteLine(typeof(I2).IsPublic); Console.WriteLine(typeof(I3).IsPublic); Console.WriteLine(typeof(I1).GetMethod("M").IsPublic); Console.WriteLine(typeof(I2).GetMethod("M").IsPublic); Console.WriteLine(typeof(I3).GetMethod("M").IsPublic); } } }