Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Baulig <martin@novell.com>2006-02-16 17:41:33 +0300
committerMartin Baulig <martin@novell.com>2006-02-16 17:41:33 +0300
commit8033fc7bd8753a1adfa3d2af6888d4b8973077c3 (patch)
treed0a706e4e9343b99fc81c0b4b9af0edfeca6201c /mcs/class/Mono.C5
parent0fac3dff7d6fb7a7ffc023b8796579b66e312572 (diff)
Add the '#if NET_2_0' conditional everywhere.
svn path=/trunk/mcs/; revision=56941
Diffstat (limited to 'mcs/class/Mono.C5')
-rw-r--r--mcs/class/Mono.C5/C5/AssemblyInfo.cs3
-rw-r--r--mcs/class/Mono.C5/C5/Attributes.cs4
-rw-r--r--mcs/class/Mono.C5/C5/Builtin.cs4
-rw-r--r--mcs/class/Mono.C5/C5/Collections.cs3
-rw-r--r--mcs/class/Mono.C5/C5/Comparer.cs4
-rw-r--r--mcs/class/Mono.C5/C5/Delegates.cs3
-rw-r--r--mcs/class/Mono.C5/C5/Dictionaries.cs4
-rw-r--r--mcs/class/Mono.C5/C5/Enums.cs4
-rw-r--r--mcs/class/Mono.C5/C5/Events.cs4
-rw-r--r--mcs/class/Mono.C5/C5/Exceptions.cs4
-rw-r--r--mcs/class/Mono.C5/C5/Formatting.cs4
-rw-r--r--mcs/class/Mono.C5/C5/Hashers.cs3
-rw-r--r--mcs/class/Mono.C5/C5/Interfaces.cs3
-rw-r--r--mcs/class/Mono.C5/C5/MappedEnumerators.cs4
-rw-r--r--mcs/class/Mono.C5/C5/Random.cs4
-rw-r--r--mcs/class/Mono.C5/C5/Records.cs3
-rw-r--r--mcs/class/Mono.C5/C5/Sorting.cs4
-rw-r--r--mcs/class/Mono.C5/C5/ViewSupport.cs4
-rw-r--r--mcs/class/Mono.C5/C5/WrappedArray.cs4
-rw-r--r--mcs/class/Mono.C5/C5/Wrappers.cs4
-rw-r--r--mcs/class/Mono.C5/C5/arrays/ArrayList.cs3
-rw-r--r--mcs/class/Mono.C5/C5/arrays/CircularQueue.cs4
-rwxr-xr-xmcs/class/Mono.C5/C5/arrays/HashedArrayList.cs3
-rw-r--r--mcs/class/Mono.C5/C5/arrays/SortedArray.cs4
-rw-r--r--mcs/class/Mono.C5/C5/hashing/HashBag.cs3
-rw-r--r--mcs/class/Mono.C5/C5/hashing/HashDictionary.cs4
-rw-r--r--mcs/class/Mono.C5/C5/hashing/HashTable.cs3
-rw-r--r--mcs/class/Mono.C5/C5/heaps/IntervalHeap.cs3
-rwxr-xr-xmcs/class/Mono.C5/C5/linkedlists/HashedLinkedList.cs3
-rw-r--r--mcs/class/Mono.C5/C5/linkedlists/LinkedList.cs3
-rwxr-xr-xmcs/class/Mono.C5/C5/trees/RedBlackTreeBag.cs3
-rw-r--r--mcs/class/Mono.C5/C5/trees/RedBlackTreeDictionary.cs4
-rw-r--r--mcs/class/Mono.C5/C5/trees/RedBlackTreeSet.cs3
-rwxr-xr-xmcs/class/Mono.C5/add-conditional.pl16
34 files changed, 115 insertions, 18 deletions
diff --git a/mcs/class/Mono.C5/C5/AssemblyInfo.cs b/mcs/class/Mono.C5/C5/AssemblyInfo.cs
index a649742b511..d5af25f3546 100644
--- a/mcs/class/Mono.C5/C5/AssemblyInfo.cs
+++ b/mcs/class/Mono.C5/C5/AssemblyInfo.cs
@@ -1,3 +1,4 @@
+#if NET_2_0
/*
Copyright (c) 2003-2006 Niels Kokholm and Peter Sestoft
Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -77,3 +78,5 @@ using System.Runtime.CompilerServices;
//[assembly: AssemblyDelaySign(false)]
//[assembly: AssemblyKeyFile("..\\..\\..\\c5.snk")]
//[assembly: AssemblyKeyName("")]
+
+#endif
diff --git a/mcs/class/Mono.C5/C5/Attributes.cs b/mcs/class/Mono.C5/C5/Attributes.cs
index 9302996aa0d..aa1ce008502 100644
--- a/mcs/class/Mono.C5/C5/Attributes.cs
+++ b/mcs/class/Mono.C5/C5/Attributes.cs
@@ -1,3 +1,4 @@
+#if NET_2_0
/*
Copyright (c) 2003-2006 Niels Kokholm and Peter Sestoft
Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -45,4 +46,5 @@ namespace C5
[Tested]
public override string ToString() { return "Tested via " + via; }
}
-} \ No newline at end of file
+}
+#endif
diff --git a/mcs/class/Mono.C5/C5/Builtin.cs b/mcs/class/Mono.C5/C5/Builtin.cs
index 3b6a4b017f4..f2f19168872 100644
--- a/mcs/class/Mono.C5/C5/Builtin.cs
+++ b/mcs/class/Mono.C5/C5/Builtin.cs
@@ -1,3 +1,4 @@
+#if NET_2_0
/*
Copyright (c) 2003-2006 Niels Kokholm and Peter Sestoft
Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -183,4 +184,5 @@ namespace C5
}
#endregion
-} \ No newline at end of file
+}
+#endif
diff --git a/mcs/class/Mono.C5/C5/Collections.cs b/mcs/class/Mono.C5/C5/Collections.cs
index 98acf96dd5a..e735b50cf57 100644
--- a/mcs/class/Mono.C5/C5/Collections.cs
+++ b/mcs/class/Mono.C5/C5/Collections.cs
@@ -1,3 +1,4 @@
+#if NET_2_0
/*
Copyright (c) 2003-2006 Niels Kokholm and Peter Sestoft
Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1518,3 +1519,5 @@ namespace C5
#endregion
}
}
+
+#endif
diff --git a/mcs/class/Mono.C5/C5/Comparer.cs b/mcs/class/Mono.C5/C5/Comparer.cs
index 784b015e51a..7d760131d9f 100644
--- a/mcs/class/Mono.C5/C5/Comparer.cs
+++ b/mcs/class/Mono.C5/C5/Comparer.cs
@@ -1,3 +1,4 @@
+#if NET_2_0
/*
Copyright (c) 2003-2006 Niels Kokholm and Peter Sestoft
Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -149,4 +150,5 @@ namespace C5
/// <returns>item1 &lt;=&gt; item2</returns>
public int Compare(T item1, T item2) { return cmp(item1, item2); }
}
-} \ No newline at end of file
+}
+#endif
diff --git a/mcs/class/Mono.C5/C5/Delegates.cs b/mcs/class/Mono.C5/C5/Delegates.cs
index 36792d8555b..1fd03a26852 100644
--- a/mcs/class/Mono.C5/C5/Delegates.cs
+++ b/mcs/class/Mono.C5/C5/Delegates.cs
@@ -1,3 +1,4 @@
+#if NET_2_0
/*
Copyright (c) 2003-2006 Niels Kokholm and Peter Sestoft
Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -129,3 +130,5 @@ namespace C5
/// <returns></returns>
public delegate R Fun<A1, A2, A3, A4, R>(A1 x1, A2 x2, A3 x3, A4 x4);
}
+
+#endif
diff --git a/mcs/class/Mono.C5/C5/Dictionaries.cs b/mcs/class/Mono.C5/C5/Dictionaries.cs
index 4370461c7ea..fcf84c2eb71 100644
--- a/mcs/class/Mono.C5/C5/Dictionaries.cs
+++ b/mcs/class/Mono.C5/C5/Dictionaries.cs
@@ -1,3 +1,4 @@
+#if NET_2_0
/*
Copyright (c) 2003-2006 Niels Kokholm and Peter Sestoft
Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1292,4 +1293,5 @@ namespace C5
}
}
-} \ No newline at end of file
+}
+#endif
diff --git a/mcs/class/Mono.C5/C5/Enums.cs b/mcs/class/Mono.C5/C5/Enums.cs
index a92301d83e2..5dcd85971c1 100644
--- a/mcs/class/Mono.C5/C5/Enums.cs
+++ b/mcs/class/Mono.C5/C5/Enums.cs
@@ -1,3 +1,4 @@
+#if NET_2_0
/*
Copyright (c) 2003-2006 Niels Kokholm and Peter Sestoft
Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -95,4 +96,5 @@ namespace C5
/// </summary>
Backwards
}
-} \ No newline at end of file
+}
+#endif
diff --git a/mcs/class/Mono.C5/C5/Events.cs b/mcs/class/Mono.C5/C5/Events.cs
index 4a5d8d7d1b3..ebcf5a1bbcf 100644
--- a/mcs/class/Mono.C5/C5/Events.cs
+++ b/mcs/class/Mono.C5/C5/Events.cs
@@ -1,3 +1,4 @@
+#if NET_2_0
/*
Copyright (c) 2003-2006 Niels Kokholm and Peter Sestoft
Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -529,4 +530,5 @@ namespace C5
/// <param name="sender"></param>
/// <param name="eventArgs"></param>
public delegate void ItemRemovedAtHandler<T>(object sender, ItemAtEventArgs<T> eventArgs);
-} \ No newline at end of file
+}
+#endif
diff --git a/mcs/class/Mono.C5/C5/Exceptions.cs b/mcs/class/Mono.C5/C5/Exceptions.cs
index 2480b22c6df..ccf6c8e9988 100644
--- a/mcs/class/Mono.C5/C5/Exceptions.cs
+++ b/mcs/class/Mono.C5/C5/Exceptions.cs
@@ -1,3 +1,4 @@
+#if NET_2_0
/*
Copyright (c) 2003-2006 Niels Kokholm and Peter Sestoft
Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -241,4 +242,5 @@ namespace C5
public IncompatibleViewException(string message) : base(message) { }
}
-} \ No newline at end of file
+}
+#endif
diff --git a/mcs/class/Mono.C5/C5/Formatting.cs b/mcs/class/Mono.C5/C5/Formatting.cs
index 5d4a1449f42..bc2433bd3e2 100644
--- a/mcs/class/Mono.C5/C5/Formatting.cs
+++ b/mcs/class/Mono.C5/C5/Formatting.cs
@@ -1,3 +1,4 @@
+#if NET_2_0
/*
Copyright (c) 2003-2006 Niels Kokholm and Peter Sestoft
Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -244,4 +245,5 @@ namespace C5
return complete;
}
}
-} \ No newline at end of file
+}
+#endif
diff --git a/mcs/class/Mono.C5/C5/Hashers.cs b/mcs/class/Mono.C5/C5/Hashers.cs
index 70778c57e0c..d759c15a9f9 100644
--- a/mcs/class/Mono.C5/C5/Hashers.cs
+++ b/mcs/class/Mono.C5/C5/Hashers.cs
@@ -1,3 +1,4 @@
+#if NET_2_0
/*
Copyright (c) 2003-2006 Niels Kokholm and Peter Sestoft
Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -487,3 +488,5 @@ namespace C5.EqualityComparerBuilder
}
}
#endif
+
+#endif
diff --git a/mcs/class/Mono.C5/C5/Interfaces.cs b/mcs/class/Mono.C5/C5/Interfaces.cs
index 3ae5abe85d4..46fb2e8ede0 100644
--- a/mcs/class/Mono.C5/C5/Interfaces.cs
+++ b/mcs/class/Mono.C5/C5/Interfaces.cs
@@ -1,3 +1,4 @@
+#if NET_2_0
/*
Copyright (c) 2003-2006 Niels Kokholm and Peter Sestoft
Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1882,3 +1883,5 @@ namespace C5
bool Equals(T item1, T item2);
}*/
}
+
+#endif
diff --git a/mcs/class/Mono.C5/C5/MappedEnumerators.cs b/mcs/class/Mono.C5/C5/MappedEnumerators.cs
index 580a34d0d1e..6511a6da2d1 100644
--- a/mcs/class/Mono.C5/C5/MappedEnumerators.cs
+++ b/mcs/class/Mono.C5/C5/MappedEnumerators.cs
@@ -1,3 +1,4 @@
+#if NET_2_0
/*
Copyright (c) 2003-2006 Niels Kokholm and Peter Sestoft
Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -142,4 +143,5 @@ namespace C5
get { return directedenumerable.Direction; }
}
}
-} \ No newline at end of file
+}
+#endif
diff --git a/mcs/class/Mono.C5/C5/Random.cs b/mcs/class/Mono.C5/C5/Random.cs
index 28df260b85f..89a8d720a5d 100644
--- a/mcs/class/Mono.C5/C5/Random.cs
+++ b/mcs/class/Mono.C5/C5/Random.cs
@@ -1,3 +1,4 @@
+#if NET_2_0
/*
Copyright (c) 2003-2006 Niels Kokholm and Peter Sestoft
Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -169,4 +170,5 @@ namespace C5
Array.Copy(Q, this.Q, 16);
}
}
-} \ No newline at end of file
+}
+#endif
diff --git a/mcs/class/Mono.C5/C5/Records.cs b/mcs/class/Mono.C5/C5/Records.cs
index 47adaa9c070..5eb0df18b98 100644
--- a/mcs/class/Mono.C5/C5/Records.cs
+++ b/mcs/class/Mono.C5/C5/Records.cs
@@ -1,3 +1,4 @@
+#if NET_2_0
/*
Copyright (c) 2003-2006 Niels Kokholm and Peter Sestoft
Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -508,3 +509,5 @@ namespace C5
#endregion
}
}
+
+#endif
diff --git a/mcs/class/Mono.C5/C5/Sorting.cs b/mcs/class/Mono.C5/C5/Sorting.cs
index d40003dd232..c30b8a7b488 100644
--- a/mcs/class/Mono.C5/C5/Sorting.cs
+++ b/mcs/class/Mono.C5/C5/Sorting.cs
@@ -1,3 +1,4 @@
+#if NET_2_0
/*
Copyright (c) 2003-2006 Niels Kokholm and Peter Sestoft
Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -236,4 +237,5 @@ namespace C5
}
}
}
-} \ No newline at end of file
+}
+#endif
diff --git a/mcs/class/Mono.C5/C5/ViewSupport.cs b/mcs/class/Mono.C5/C5/ViewSupport.cs
index ca2a6d72d30..b013a36c107 100644
--- a/mcs/class/Mono.C5/C5/ViewSupport.cs
+++ b/mcs/class/Mono.C5/C5/ViewSupport.cs
@@ -1,3 +1,4 @@
+#if NET_2_0
/*
Copyright (c) 2003-2006 Niels Kokholm and Peter Sestoft
Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -98,4 +99,5 @@ namespace C5
}
#endregion
-} \ No newline at end of file
+}
+#endif
diff --git a/mcs/class/Mono.C5/C5/WrappedArray.cs b/mcs/class/Mono.C5/C5/WrappedArray.cs
index b0aac9e111c..cfdf6f72add 100644
--- a/mcs/class/Mono.C5/C5/WrappedArray.cs
+++ b/mcs/class/Mono.C5/C5/WrappedArray.cs
@@ -1,3 +1,4 @@
+#if NET_2_0
/*
Copyright (c) 2003-2006 Niels Kokholm and Peter Sestoft
Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -868,4 +869,5 @@ namespace C5
#endregion
}
-} \ No newline at end of file
+}
+#endif
diff --git a/mcs/class/Mono.C5/C5/Wrappers.cs b/mcs/class/Mono.C5/C5/Wrappers.cs
index 9d594e0b064..ceb71882c9a 100644
--- a/mcs/class/Mono.C5/C5/Wrappers.cs
+++ b/mcs/class/Mono.C5/C5/Wrappers.cs
@@ -1,3 +1,4 @@
+#if NET_2_0
/*
Copyright (c) 2003-2006 Niels Kokholm and Peter Sestoft
Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -2230,4 +2231,5 @@ namespace C5
#endregion
}
-} \ No newline at end of file
+}
+#endif
diff --git a/mcs/class/Mono.C5/C5/arrays/ArrayList.cs b/mcs/class/Mono.C5/C5/arrays/ArrayList.cs
index 4ff7084ebc1..64e4a4f1a48 100644
--- a/mcs/class/Mono.C5/C5/arrays/ArrayList.cs
+++ b/mcs/class/Mono.C5/C5/arrays/ArrayList.cs
@@ -1,3 +1,4 @@
+#if NET_2_0
/*
Copyright (c) 2003-2006 Niels Kokholm and Peter Sestoft
@@ -2534,3 +2535,5 @@ namespace C5
#endregion
}
}
+
+#endif
diff --git a/mcs/class/Mono.C5/C5/arrays/CircularQueue.cs b/mcs/class/Mono.C5/C5/arrays/CircularQueue.cs
index 05fe2163d4d..b33b5d7077d 100644
--- a/mcs/class/Mono.C5/C5/arrays/CircularQueue.cs
+++ b/mcs/class/Mono.C5/C5/arrays/CircularQueue.cs
@@ -1,3 +1,4 @@
+#if NET_2_0
/*
Copyright (c) 2003-2006 Niels Kokholm and Peter Sestoft
Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -331,4 +332,5 @@ namespace C5
return true;
}
}
-} \ No newline at end of file
+}
+#endif
diff --git a/mcs/class/Mono.C5/C5/arrays/HashedArrayList.cs b/mcs/class/Mono.C5/C5/arrays/HashedArrayList.cs
index becda3872e2..544cf9b5789 100755
--- a/mcs/class/Mono.C5/C5/arrays/HashedArrayList.cs
+++ b/mcs/class/Mono.C5/C5/arrays/HashedArrayList.cs
@@ -1,3 +1,4 @@
+#if NET_2_0
/*
Copyright (c) 2003-2006 Niels Kokholm and Peter Sestoft
@@ -2534,3 +2535,5 @@ namespace C5
#endregion
}
}
+
+#endif
diff --git a/mcs/class/Mono.C5/C5/arrays/SortedArray.cs b/mcs/class/Mono.C5/C5/arrays/SortedArray.cs
index b7bc75339c5..71df1fb67c5 100644
--- a/mcs/class/Mono.C5/C5/arrays/SortedArray.cs
+++ b/mcs/class/Mono.C5/C5/arrays/SortedArray.cs
@@ -1,3 +1,4 @@
+#if NET_2_0
/*
Copyright (c) 2003-2006 Niels Kokholm and Peter Sestoft
Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1263,4 +1264,5 @@ namespace C5
#endregion
}
-} \ No newline at end of file
+}
+#endif
diff --git a/mcs/class/Mono.C5/C5/hashing/HashBag.cs b/mcs/class/Mono.C5/C5/hashing/HashBag.cs
index e8ad80a137a..5517b4b63b6 100644
--- a/mcs/class/Mono.C5/C5/hashing/HashBag.cs
+++ b/mcs/class/Mono.C5/C5/hashing/HashBag.cs
@@ -1,3 +1,4 @@
+#if NET_2_0
/*
Copyright (c) 2003-2006 Niels Kokholm and Peter Sestoft
Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -676,3 +677,5 @@ namespace C5
#endregion
}
}
+
+#endif
diff --git a/mcs/class/Mono.C5/C5/hashing/HashDictionary.cs b/mcs/class/Mono.C5/C5/hashing/HashDictionary.cs
index 84adde2c458..4dbc7a62a35 100644
--- a/mcs/class/Mono.C5/C5/hashing/HashDictionary.cs
+++ b/mcs/class/Mono.C5/C5/hashing/HashDictionary.cs
@@ -1,3 +1,4 @@
+#if NET_2_0
/*
Copyright (c) 2003-2006 Niels Kokholm and Peter Sestoft
Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -74,4 +75,5 @@ namespace C5
}
}
-} \ No newline at end of file
+}
+#endif
diff --git a/mcs/class/Mono.C5/C5/hashing/HashTable.cs b/mcs/class/Mono.C5/C5/hashing/HashTable.cs
index 0db8f66f6af..2223e9d6307 100644
--- a/mcs/class/Mono.C5/C5/hashing/HashTable.cs
+++ b/mcs/class/Mono.C5/C5/hashing/HashTable.cs
@@ -1,3 +1,4 @@
+#if NET_2_0
/*
Copyright (c) 2003-2006 Niels Kokholm and Peter Sestoft
Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1598,3 +1599,5 @@ namespace C5
}
}
+
+#endif
diff --git a/mcs/class/Mono.C5/C5/heaps/IntervalHeap.cs b/mcs/class/Mono.C5/C5/heaps/IntervalHeap.cs
index bf5f0d91e3f..db925daa2d4 100644
--- a/mcs/class/Mono.C5/C5/heaps/IntervalHeap.cs
+++ b/mcs/class/Mono.C5/C5/heaps/IntervalHeap.cs
@@ -1,3 +1,4 @@
+#if NET_2_0
/*
Copyright (c) 2003-2006 Niels Kokholm and Peter Sestoft
Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1098,3 +1099,5 @@ namespace C5
}
}
+
+#endif
diff --git a/mcs/class/Mono.C5/C5/linkedlists/HashedLinkedList.cs b/mcs/class/Mono.C5/C5/linkedlists/HashedLinkedList.cs
index 7e251ee0544..c0750d536bc 100755
--- a/mcs/class/Mono.C5/C5/linkedlists/HashedLinkedList.cs
+++ b/mcs/class/Mono.C5/C5/linkedlists/HashedLinkedList.cs
@@ -1,3 +1,4 @@
+#if NET_2_0
/*
Copyright (c) 2003-2006 Niels Kokholm and Peter Sestoft
Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -3780,3 +3781,5 @@ namespace C5
}
}
+
+#endif
diff --git a/mcs/class/Mono.C5/C5/linkedlists/LinkedList.cs b/mcs/class/Mono.C5/C5/linkedlists/LinkedList.cs
index 322a4c0cb3d..d49c73ba809 100644
--- a/mcs/class/Mono.C5/C5/linkedlists/LinkedList.cs
+++ b/mcs/class/Mono.C5/C5/linkedlists/LinkedList.cs
@@ -1,3 +1,4 @@
+#if NET_2_0
/*
Copyright (c) 2003-2006 Niels Kokholm and Peter Sestoft
Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -3780,3 +3781,5 @@ namespace C5
}
}
+
+#endif
diff --git a/mcs/class/Mono.C5/C5/trees/RedBlackTreeBag.cs b/mcs/class/Mono.C5/C5/trees/RedBlackTreeBag.cs
index f1f78906be7..8f3d4e78ae1 100755
--- a/mcs/class/Mono.C5/C5/trees/RedBlackTreeBag.cs
+++ b/mcs/class/Mono.C5/C5/trees/RedBlackTreeBag.cs
@@ -1,3 +1,4 @@
+#if NET_2_0
/*
Copyright (c) 2003-2006 Niels Kokholm and Peter Sestoft
Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -4488,3 +4489,5 @@ namespace C5
}
}
+
+#endif
diff --git a/mcs/class/Mono.C5/C5/trees/RedBlackTreeDictionary.cs b/mcs/class/Mono.C5/C5/trees/RedBlackTreeDictionary.cs
index 4e1bc61f81a..be277179687 100644
--- a/mcs/class/Mono.C5/C5/trees/RedBlackTreeDictionary.cs
+++ b/mcs/class/Mono.C5/C5/trees/RedBlackTreeDictionary.cs
@@ -1,3 +1,4 @@
+#if NET_2_0
/*
Copyright (c) 2003-2006 Niels Kokholm and Peter Sestoft
Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -77,4 +78,5 @@ namespace C5
}
}
-} \ No newline at end of file
+}
+#endif
diff --git a/mcs/class/Mono.C5/C5/trees/RedBlackTreeSet.cs b/mcs/class/Mono.C5/C5/trees/RedBlackTreeSet.cs
index ac86cc6eaea..2275011d005 100644
--- a/mcs/class/Mono.C5/C5/trees/RedBlackTreeSet.cs
+++ b/mcs/class/Mono.C5/C5/trees/RedBlackTreeSet.cs
@@ -1,3 +1,4 @@
+#if NET_2_0
/*
Copyright (c) 2003-2006 Niels Kokholm and Peter Sestoft
Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -4488,3 +4489,5 @@ namespace C5
}
}
+
+#endif
diff --git a/mcs/class/Mono.C5/add-conditional.pl b/mcs/class/Mono.C5/add-conditional.pl
new file mode 100755
index 00000000000..ac758cc9b6b
--- /dev/null
+++ b/mcs/class/Mono.C5/add-conditional.pl
@@ -0,0 +1,16 @@
+#!/usr/bin/perl -w
+use strict;
+
+foreach my $file (@ARGV) {
+ open FILE,"+<",$file;
+ my $contents = "";
+ while (defined ($_ = <FILE>)) {
+ $contents .= $_;
+ }
+ truncate FILE, 0;
+ seek FILE, 0, 0;
+ print FILE "#if NET_2_0\n";
+ print FILE $contents . "\n";
+ print FILE "#endif\n";
+ close FILE;
+}