泛型的findall

    public List<string> allstring = new List<string>("cxvc", "sadf");
    string[] all2 = new string("sfd","dfasd");
    protected override void OnLoad(EventArgs e)
    {
        List<string> l2 = allstring.FindAll(delegate(string item){
            return item.Length > 5;
        });

        Array.FindAll<string>(all2, delegate(string item){

        });

你可能感兴趣的:(find)