Parcourir la source

2001-08-08 Nick Drochak <[email protected]>

         * ReadOnlyCollectionBase.cs: Initialized private member.
         * CollectionBase.cs: Initialized private member.
	 * common.src : Added ReadOnlyCollectionBase.cs and CollectionBase.cs
	 * /mcs/class/makefile: Used $(SYSTEMROOT) instead of hard coded //c/winnt
	 * /mcs/makefile: Used $(SYSTEMROOT) instead of hard coded //c/winnt

svn path=/trunk/mcs/; revision=426
Nick Drochak il y a 24 ans
Parent
commit
8139457d4e

+ 8 - 0
mcs/class/corlib/System.Collections/ChangeLog

@@ -1,3 +1,11 @@
+2001-08-08 Nick Drochak <[email protected]>
+
+         * ReadOnlyCollectionBase.cs: Initialized private member.
+         * CollectionBase.cs: Initialized private member.
+	 * common.src : Added ReadOnlyCollectionBase.cs and CollectionBase.cs
+	 * /mcs/class/makefile: Used $(SYSTEMROOT) instead of hard coded //c/winnt
+	 * /mcs/makefile: Used $(SYSTEMROOT) instead of hard coded //c/winnt
+
 2001-08-08 Nick Drochak <[email protected]>
 
          * CollectionBase.cs: Add

+ 3 - 1
mcs/class/corlib/System.Collections/CollectionBase.cs

@@ -31,7 +31,9 @@ namespace System.Collections {
 		}
 		
 		// Protected Instance Constructors
-		protected CollectionBase() { }
+		protected CollectionBase() { 
+			this.myList = new System.Collections.ArrayList();
+		}
 		
 		// Protected Instance Properties
 		protected System.Collections.ArrayList InnerList {get { return this.myList; } }

+ 3 - 1
mcs/class/corlib/System.Collections/ReadOnlyCollectionBase.cs

@@ -23,7 +23,9 @@ namespace System.Collections {
 		public virtual System.Collections.IEnumerator GetEnumerator() { return InnerList.GetEnumerator(); }
 		
 		// Protected Instance Constructors
-		protected ReadOnlyCollectionBase() { }
+		protected ReadOnlyCollectionBase() {
+			this.myList = new System.Collections.ArrayList();
+		}
 		
 		// Protected Instance Properties
 		protected virtual System.Collections.ArrayList InnerList {get { return this.myList; } }

+ 2 - 0
mcs/class/corlib/System.Collections/common.src

@@ -11,3 +11,5 @@ IHashCodeProvider.cs
 IList.cs
 Stack.cs
 SortedList.cs
+CollectionBase.cs
+ReadOnlyCollectionBase.cs

+ 1 - 1
mcs/class/makefile

@@ -1,5 +1,5 @@
 DIRS=corlib System System.XML
-CSC=//c/winnt/microsoft.net/framework/v1.0.2914/csc.exe
+CSC=$(SYSTEMROOT)/microsoft.net/framework/v1.0.2914/csc.exe
 
 all:
 	@echo "You must use 'make windows' or 'make unix'."

+ 1 - 1
mcs/mcs/makefile

@@ -1,4 +1,4 @@
-CSC=//c/winnt/microsoft.net/framework/v1.0.2914/csc.exe
+CSC=$(SYSTEMROOT)/microsoft.net/framework/v1.0.2914/csc.exe
 CSCFLAGS=/nologo /debug+ /debug:full 
 
 VERSION=0.13