/**********************************************************\
| |
| The implementation of PHPRPC Protocol 3.0 |
| |
| Hashtable.cs |
| |
| Release 3.0.1 |
| Copyright (c) 2005-2008 by Team-PHPRPC |
| |
| WebSite: http://www.phprpc.org/ |
| http://www.phprpc.net/ |
| http://www.phprpc.com/ |
| http://sourceforge.net/projects/php-rpc/ |
| |
| Authors: Ma Bingyao <andot@ujn.edu.cn> |
| |
| This file may be distributed and/or modified under the |
| terms of the GNU Lesser General Public License (LGPL) |
| version 3.0 as published by the Free Software Foundation |
| and appearing in the included file LICENSE. |
| |
\**********************************************************/
/* Hashtable class.
*
* Copyright (C) 2005-2008 Ma Bingyao <andot@ujn.edu.cn>
* Version: 3.0
* LastModified: Nov 7, 2008
* This library is free. You can redistribute it and/or modify it.
*/
#if SILVERLIGHT
namespace System.Collections {
using System;
public class Hashtable : System.Collections.Generic.Dictionary<Object, Object> {
private Object syncRoot = new Object();
public Hashtable() : base() {
}
public Hashtable(Int32 capacity) : base(capacity) {
}
public Hashtable(Int32 capacity, Single loadFactor) : base(capacity) {
}
public Hashtable(IDictionary value) : base((System.Collections.Generic.IDictionary<Object, Object>)value) {
}
public bool Contains(Object key) {
return base.ContainsKey(key);
}
public virtual Object SyncRoot {
get {
return syncRoot;
}
}
public virtual void CopyTo(Array array, Int32 index) {
Object[] tmp = new Object[Count];
Values.CopyTo(tmp, 0);
tmp.CopyTo(array, index);
}
}
}
#endif