コード例 #1
0
        public static InterfaceInfo GetInterfaceInfo(DecompilerTypeSystem typeSystem, string typeName)
        {
            var           type = DecompilerUtils.GetSelfDefinedWinmdToplevelTypes(typeSystem).Where(t => t.Kind == TypeKind.Interface && t.Name == typeName).Single();
            InterfaceInfo ret  = new InterfaceInfo()
            {
                Name = type.Name
            };
            List <string> protoTypes = new List <string>();

            foreach (IMethod method in type.Methods)
            {
                protoTypes.Add(GetMethodPrototype(method));
            }

            ret.Methods = protoTypes.ToArray();

            return(ret);
        }
コード例 #2
0
 public InterfaceTests()
 {
     this.typeSystem = DecompilerUtils.LoadDecompilerTypeSystem(TestCommon.TestUtils.Win32WinmdPath);
 }