コード例 #1
0
 protected override IEnumerable <string> GetTypeNameHierarchy(object obj)
 {
     for (Type iteratorVariable0 = obj.GetType(); iteratorVariable0 != null; iteratorVariable0 = iteratorVariable0.BaseType)
     {
         if (iteratorVariable0.FullName.Equals("System.__ComObject"))
         {
             yield return(ComAdapter.GetComTypeName(this.comTypeInfo.Clsid));
         }
         yield return(iteratorVariable0.FullName);
     }
 }
コード例 #2
0
ファイル: ComAdapter.cs プロジェクト: mmoenfly/GitCook2021
        protected override Collection <string> GetTypeNameHierarchy(object obj)
        {
            Collection <string> typeNameHierarchy = base.GetTypeNameHierarchy(obj);
            Collection <string> collection        = new Collection <string>();

            collection.Add(ComAdapter.GetComTypeName(this.GetTypeInfo().Clsid));
            foreach (string str in typeNameHierarchy)
            {
                collection.Add(str);
            }
            return(collection);
        }