天天看點

擴充方法

public class Page1

{

}

public static class EMClass

  //第一個this是擴充的類型,接下來是參數

    public static string RS(this Page1 p, string s)

    {

        return s;

    }