⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 externalreferences.cs

📁 visual basic.net进销存程序设计.rar] - visual basic.net进销存程序设计 [进销存管系统.rar] - 进销存管系统,VB源代码 [vb.net计算机机房管理系统.
💻 CS
📖 第 1 页 / 共 5 页
字号:
            _reference = ReferencedType.IsInstanceOfType(reference) ? reference : null;
        }
        
        // [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        // public DTE2 DTE
        // {
        //     get
        //     {
        //         object value = ReferencedType.GetProperty("DTE").GetValue(_reference, new object[] { });
        //         return value != null ? new DTE2(value) : null;
        //     }
        // }
        
        // [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        // public System.Object Parent
        // {
        //     get { return (System.Object) ReferencedType.GetProperty("Parent").GetValue(_reference, new object[] { }); }
        // }
        
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        public vsCMTypeRef TypeKind
        {
            get
            {
                object value = ReferencedType.GetProperty("TypeKind").GetValue(_reference, new object[] { });
                return value != null ? new vsCMTypeRef(value) : null;
            }
        }
        
        // [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        // public CodeType CodeType
        // {
        //     get { return (CodeType) ReferencedType.GetProperty("CodeType").GetValue(_reference, new object[] { }); }
        //     set { ReferencedType.GetProperty("CodeType").SetValue(_reference, value, new object[] { }); }
        // }
        
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        public CodeTypeRef ElementType
        {
            get
            {
                object value = ReferencedType.GetProperty("ElementType").GetValue(_reference, new object[] { });
                return value != null ? new CodeTypeRef(value) : null;
            }
            set { ReferencedType.GetProperty("ElementType").SetValue(_reference, value != null ? value.Reference : null, new object[] { }); }
        }
        
        // [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        // public System.String AsString
        // {
        //     get { return (System.String) ReferencedType.GetProperty("AsString").GetValue(_reference, new object[] { }); }
        // }
        
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        public System.String AsFullName
        {
            get { return (System.String) ReferencedType.GetProperty("AsFullName").GetValue(_reference, new object[] { }); }
        }
        
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        public System.Int32 Rank
        {
            get { return (System.Int32) ReferencedType.GetProperty("Rank").GetValue(_reference, new object[] { }); }
            set { ReferencedType.GetProperty("Rank").SetValue(_reference, value, new object[] { }); }
        }
        
        // [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        // public CodeTypeRef CreateArrayType(System.Int32 Rank)
        // {
        //     object value = ReferencedType.GetMethod("CreateArrayType").Invoke(_reference, new object[] { Rank });
        //     return value != null ? new CodeTypeRef(value) : null;
        // }
        
    }

    internal class CodeElements
    {
        public static Type ReferencedType
        {
            get
            {
                if (_referencedType == null)
                {
                    _referencedType = ReferencedAssemblies.EnvDTE.GetType("EnvDTE.CodeElements");
                    if (_referencedType == null)
                    {
                        throw new InvalidOperationException("Failed to load type 'EnvDTE.CodeElements' from assembly 'EnvDTE, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.");
                    }
                }
                return _referencedType;
            }
        }
        private static Type _referencedType;
        
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        public object Reference
        {
            get { return _reference; }
            set { _reference = value; }
        }
        private object _reference;
        
        public CodeElements()
            : this(null)
        {
        }
        
        public CodeElements(object reference)
        {
            _reference = ReferencedType.IsInstanceOfType(reference) ? reference : null;
        }
        
        // [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        // public DTE2 DTE
        // {
        //     get
        //     {
        //         object value = ReferencedType.GetProperty("DTE").GetValue(_reference, new object[] { });
        //         return value != null ? new DTE2(value) : null;
        //     }
        // }
        
        // [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        // public System.Object Parent
        // {
        //     get { return (System.Object) ReferencedType.GetProperty("Parent").GetValue(_reference, new object[] { }); }
        // }
        
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        public System.Int32 Count
        {
            get { return (System.Int32) ReferencedType.GetProperty("Count").GetValue(_reference, new object[] { }); }
        }
        
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        public System.Collections.IEnumerator GetEnumerator()
        {
            object value = ReferencedType.GetMethod("GetEnumerator").Invoke(_reference, new object[] {  });
            return (System.Collections.IEnumerator) value;
        }
        
        // [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        // public CodeElement2 Item(System.Object index)
        // {
        //     object value = ReferencedType.GetMethod("Item").Invoke(_reference, new object[] { index });
        //     return value != null ? new CodeElement2(value) : null;
        // }
        
        // [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        // public void Reserved1(System.Object Element)
        // {
        //     ReferencedType.GetMethod("Reserved1").Invoke(_reference, new object[] { Element });
        // }
        
        // [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        // public System.Boolean CreateUniqueID(System.String Prefix, System.String& NewName)
        // {
        //     object value = ReferencedType.GetMethod("CreateUniqueID").Invoke(_reference, new object[] { Prefix, NewName });
        //     return (System.Boolean) value;
        // }
        
    }

    internal class FileCodeModel2
    {
        public static Type ReferencedType
        {
            get
            {
                if (_referencedType == null)
                {
                    _referencedType = ReferencedAssemblies.EnvDTE80.GetType("EnvDTE80.FileCodeModel2");
                    if (_referencedType == null)
                    {
                        throw new InvalidOperationException("Failed to load type 'EnvDTE80.FileCodeModel2' from assembly 'EnvDTE80, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.");
                    }
                }
                return _referencedType;
            }
        }
        private static Type _referencedType;
        
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        public object Reference
        {
            get { return _reference; }
            set { _reference = value; }
        }
        private object _reference;
        
        public FileCodeModel2()
            : this(null)
        {
        }
        
        public FileCodeModel2(object reference)
        {
            _reference = ReferencedType.IsInstanceOfType(reference) ? reference : null;
        }
        
        // [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        // public DTE2 DTE
        // {
        //     get
        //     {
        //         object value = ReferencedType.GetProperty("DTE").GetValue(_reference, new object[] { });
        //         return value != null ? new DTE2(value) : null;
        //     }
        // }
        
        // [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        // public ProjectItem Parent
        // {
        //     get
        //     {
        //         object value = ReferencedType.GetProperty("Parent").GetValue(_reference, new object[] { });
        //         return value != null ? new ProjectItem(value) : null;
        //     }
        // }
        
        // [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        // public System.String Language
        // {
        //     get { return (System.String) ReferencedType.GetProperty("Language").GetValue(_reference, new object[] { }); }
        // }
        
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        public CodeElements CodeElements
        {
            get
            {
                object value = ReferencedType.GetProperty("CodeElements").GetValue(_reference, new object[] { });
                return value != null ? new CodeElements(value) : null;
            }
        }
        
        // [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        // public vsCMParseStatus ParseStatus
        // {
        //     get { return (vsCMParseStatus) ReferencedType.GetProperty("ParseStatus").GetValue(_reference, new object[] { }); }
        // }
        
        // [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        // public System.Boolean IsBatchOpen
        // {
        //     get { return (System.Boolean) ReferencedType.GetProperty("IsBatchOpen").GetValue(_reference, new object[] { }); }
        // }
        
        // [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        // public CodeElement2 CodeElementFromPoint(TextPoint Point, vsCMElement Scope)
        // {
        //     object value = ReferencedType.GetMethod("CodeElementFromPoint").Invoke(_reference, new object[] { Point, Scope != null ? Scope.Reference : null });
        //     return value != null ? new CodeElement2(value) : null;
        // }
        
        // [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        // public CodeNamespace AddNamespace(System.String Name, System.Object Position)
        // {
        //     object value = ReferencedType.GetMethod("AddNamespace").Invoke(_reference, new object[] { Name, Position });

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -