学习笔记:函数调用参数不全 也对

 待调用的函数有6个参数

public void Init(string name, int len, string text, Point txtLocation, bool canSelected = true, string tip = "")
        {
            this.mSkinInfo.TextRect = new Rectangle();
            this.mSkinInfo.TextLocation = txtLocation;

            Init(name, len, text, canSelected, tip);

        }

调用上面的函数(这里只写了4个函数,也不报错)

  this.btnHome.Init("tb_home", 3, "主页", new Point(21, 60));

*当然了,只限于高版本的!

原文地址:https://www.cnblogs.com/LifeForCode/p/3388334.html