[Mono-list] DictionaryBase stub

Petru Paler ppetru@ppetru.net
Sun, 18 Nov 2001 13:43:56 +0200


--==========1807329384==========
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hello,

In a try to actually do something rather than reading the list and the web 
site, I tried to build the Mono class library under Linux. However, NAnt 
doesn't run under wine, and when run under mint it complained about a 
missing System.Collections.DictionaryBase in corlib.dll, so I thought "what 
the heck, let me try and implement that".

Now the problem is that I don't know C#, and this stub is the first C# I 
ever wrote, so it's not necessarily doing anything useful or correct. 
However, it does get mint to run NAnt (well, up to the point where it 
complains about missing stuff in System.Xml :), so I thought I should 
submit it. Comments would be much apreciated.

Now on to stubbing out the missing System.Xml stuff :)



PS: anonymous CVS access would be a really nice thing to have, downloading 
the snapshot each day is a big pain in the ass :(


Petru


--
pHH9bXehxPl7jg
--==========1807329384==========
Content-Type: text/plain; charset=iso-8859-1; name="DictionaryBase.cs"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment; filename="DictionaryBase.cs"; size=1467

//=0D
// System.Collections.DictionaryBase.Cs=0D
//=0D
// Author:=0D
//		Petru Paler (ppetru@ppetru.net)=0D
//=0D
// (C) 2001 Petru Paler=0D
//=0D
=0D
using System;=0D
=0D
// this whole class is a big FIXME=0D
namespace System.Collections {=0D
	public abstract class DictionaryBase : IDictionary, ICollection, =
IEnumerable=0D
	{=0D
		private int count =3D 0;=0D
		=0D
		public bool Contains(object key)=0D
		{=0D
			return true; // FIXME=0D
		}=0D
		=0D
		public void Add(object key, object value)=0D
		{=0D
			return; // FIXME=0D
		}=0D
		=0D
		public void Clear()=0D
		{=0D
			return; // FIXME=0D
		}=0D
		=0D
		IEnumerator IEnumerable.GetEnumerator()=0D
		{=0D
			return null; // FIXME=0D
		}=0D
		=0D
		public IDictionaryEnumerator GetEnumerator()=0D
		{=0D
			return null;=0D
		}=0D
		=0D
		public void Remove(object key)=0D
		{=0D
			return; // FIXME=0D
		}=0D
		=0D
		protected DictionaryBase()=0D
		{=0D
			// FIXME=0D
		}=0D
		=0D
		// FIXME=0D
		public ICollection Keys { get { return null; } }=0D
		public ICollection Values { get { return null; } }=0D
		public bool IsReadOnly { get { return true; } }=0D
		public bool IsFixedSize { get { return true; } }=0D
		=0D
		public string this[string name] {=0D
			get { return "foo!"; }=0D
			set { }=0D
		}=0D
		=0D
		public object this[object name] {=0D
			get { return "foo!"; }=0D
			set {}=0D
		}=0D
		=0D
		public void CopyTo(Array array, int index)=0D
		{=0D
			return;=0D
		}=0D
		=0D
		public int Count { get { return this.count; } }=0D
		public object SyncRoot { get { return this; } }=0D
		public bool IsSynchronized { get { return true; } }=0D
		=0D
	}=0D
}=0D

--==========1807329384==========--