예제 #1
0
파일: List.cs 프로젝트: yongwuhou/NCache
        public List copy()
        {
            List retval = new List();

            lock (mutex)
            {
                for (Element el = head; el != null; el = el.next)
                {
                    retval.add(el.obj);
                }
            }
            return(retval);
        }
예제 #2
0
파일: List.cs 프로젝트: javithalion/NCache
		public List copy()
		{
			List retval = new List();
			
			lock (mutex)
			{
				for (Element el = head; el != null; el = el.next)
					retval.add(el.obj);
			}
			return retval;
		}