this引用类的当前实例

来源:互联网 发布:java 10 编辑:程序博客网 时间:2024/05/29 17:20
public NavItem ()
        {
        }
        
        public NavItem (string name) : this()
        {
            this.name = name;
        }
        
        public NavItem (string name, UIViewController controller) : this (name)
        {
            this.controller = controller;
        }

        public NavItem (string name, Type controllerType) : this (name)
        {
            this.controllerType = controllerType;
        }

        public NavItem (string name, Type controllerType, object[] controllerConstructorArgs) : this (name, controllerType)
        {
            this.ControllerConstructorArgs = controllerConstructorArgs;
        }
        
        public NavItem (string name, UIViewController controller, string imagePath) : this (name, controller)
        {
            this.imagePath = imagePath;
        }

        public NavItem (string name, string imagePath, Type controllerType) : this (name, controllerType)
        {
            this.imagePath = imagePath;
        }

        public NavItem (string name, string imagePath, Type controllerType, object[] controllerConstructorArgs) : this (name, controllerType, controllerConstructorArgs)
        {
            this.imagePath = imagePath;
        }
原创粉丝点击