System.Collections.Generic.List.Add(user)

Here are the examples of the csharp api System.Collections.Generic.List.Add(user) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

19 View Source File : userEx.cs
License : MIT License
Project Creator : ecjtuseclab

public bool isdeleterepeatuser(List<user> userlist, user olduser, user newuser)
        {
            bool flag = true;
            List<user> ulist = new List<user>();
            foreach (user uu in userlist)
            {
                if (uu.username != olduser.username)
                    ulist.Add(uu);
            }
            foreach (user uu in ulist)
            {
                if (newuser != null && uu.username == newuser.username)
                    flag = false;
            }
            return flag;
        }

19 View Source File : userEx.cs
License : MIT License
Project Creator : ecjtuseclab

public bool isdeleterepeatuser(List<user> userlist,user olduser,user newuser)
        {
            bool flag = true;
            List<user> ulist = new List<user>();
            foreach (user uu in userlist)
            {
                if (uu.username != olduser.username)
                    ulist.Add(uu);
            }
            foreach (user uu in ulist)
            {
                if(newuser!=null&&uu.username == newuser.username)
                    flag = false;
            }
            return flag;
        }