namespace System.Collections {
-#if NET_2_0
[ComVisible(true)]
-#endif
+ [System.Diagnostics.DebuggerDisplay ("Count={Count}")]
+ [System.Diagnostics.DebuggerTypeProxy (typeof (CollectionDebuggerView))]
[Serializable]
- public class Stack : ICollection, IEnumerable, ICloneable {
+#if INSIDE_CORLIB
+ public
+#else
+ internal
+#endif
+ class Stack : ICollection, IEnumerable, ICloneable {
// properties
private object[] contents;
}
}
- public static Stack Synchronized(Stack s) {
- if (s == null) {
- throw new ArgumentNullException();
- }
+ public static Stack Synchronized (Stack stack)
+ {
+ if (stack == null)
+ throw new ArgumentNullException ("stack");
- return new SyncStack(s);
+ return new SyncStack (stack);
}
public virtual int Count {
}
}
- public virtual void Push(Object o) {
+ public virtual void Push (Object obj)
+ {
modCount++;
if (capacity == count) {
count++;
current++;
- contents[current] = o;
+ contents[current] = obj;
}
public virtual object[] ToArray() {