Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / Xml / System / Xml / XPath / Internal / ClonableStack.cs / 1 / ClonableStack.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace MS.Internal.Xml.XPath { using System; using System.Xml; using System.Xml.XPath; using System.Diagnostics; internal sealed class ClonableStack: System.Collections.Generic.List { public ClonableStack() {} public ClonableStack(int capacity) : base(capacity) {} private ClonableStack(System.Collections.Generic.IEnumerable collection) : base(collection) { } public void Push(T value) { base.Add(value); } public T Pop() { int last = base.Count - 1; T result = base[last]; base.RemoveAt(last); return result; } public T Peek() { return base[base.Count - 1]; } public ClonableStack Clone() { return new ClonableStack (this); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace MS.Internal.Xml.XPath { using System; using System.Xml; using System.Xml.XPath; using System.Diagnostics; internal sealed class ClonableStack: System.Collections.Generic.List { public ClonableStack() {} public ClonableStack(int capacity) : base(capacity) {} private ClonableStack(System.Collections.Generic.IEnumerable collection) : base(collection) { } public void Push(T value) { base.Add(value); } public T Pop() { int last = base.Count - 1; T result = base[last]; base.RemoveAt(last); return result; } public T Peek() { return base[base.Count - 1]; } public ClonableStack Clone() { return new ClonableStack (this); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- _SSPISessionCache.cs
- ValueType.cs
- ReflectionUtil.cs
- DependencyPropertyConverter.cs
- Base64Decoder.cs
- Rectangle.cs
- UIElementHelper.cs
- Pair.cs
- RemoteWebConfigurationHostServer.cs
- UIElementCollection.cs
- PropertyEmitterBase.cs
- infer.cs
- TextModifierScope.cs
- TimeSpanConverter.cs
- XmlSchemaSimpleContentExtension.cs
- DependencyPropertyChangedEventArgs.cs
- WebPartDisplayModeCancelEventArgs.cs
- CodeObjectCreateExpression.cs
- DataGridViewControlCollection.cs
- Deflater.cs
- _NetRes.cs
- ImmutableObjectAttribute.cs
- ReferencedType.cs
- Operator.cs
- PathNode.cs
- CurrentChangingEventArgs.cs
- Track.cs
- WebDisplayNameAttribute.cs
- EdmComplexPropertyAttribute.cs
- WebControl.cs
- ValidationPropertyAttribute.cs
- EntitySetBaseCollection.cs
- MatrixTransform3D.cs
- ToolStripGrip.cs
- SqlClientWrapperSmiStream.cs
- DeliveryRequirementsAttribute.cs
- CopyAttributesAction.cs
- SetStateDesigner.cs
- Overlapped.cs
- PropertyDescriptorGridEntry.cs
- Label.cs
- Convert.cs
- QilStrConcat.cs
- WindowsListViewItem.cs
- ImageSource.cs
- PathTooLongException.cs
- EntitySqlException.cs
- DecoderExceptionFallback.cs
- CommandPlan.cs
- LinkedList.cs
- StrokeNode.cs
- XmlSerializerNamespaces.cs
- ClientTarget.cs
- sqlnorm.cs
- OleDbCommand.cs
- DataGridHeadersVisibilityToVisibilityConverter.cs
- TableLayoutCellPaintEventArgs.cs
- ClientFormsAuthenticationMembershipProvider.cs
- InvocationExpression.cs
- NullableFloatSumAggregationOperator.cs
- DataGridViewRowCollection.cs
- InputMethodStateTypeInfo.cs
- ClientRuntimeConfig.cs
- SQLMoneyStorage.cs
- PointCollectionConverter.cs
- UIInitializationException.cs
- DefaultEventAttribute.cs
- WeakReferenceEnumerator.cs
- IdleTimeoutMonitor.cs
- Button.cs
- AsyncOperationManager.cs
- DrawListViewColumnHeaderEventArgs.cs
- handlecollector.cs
- PropertyToken.cs
- RequestResizeEvent.cs
- SiteMapDataSourceView.cs
- BaseParagraph.cs
- FileInfo.cs
- SingleObjectCollection.cs
- EntityDataSourceContainerNameItem.cs
- ResourceDefaultValueAttribute.cs
- FilteredDataSetHelper.cs
- Visual3D.cs
- GAC.cs
- VariableQuery.cs
- Interlocked.cs
- SessionState.cs
- SettingsSavedEventArgs.cs
- StrongNameMembershipCondition.cs
- SimpleTextLine.cs
- ToolboxItemWrapper.cs
- PropertyGridEditorPart.cs
- COM2ExtendedBrowsingHandler.cs
- BindingBase.cs
- ToolStripProgressBar.cs
- SqlUtil.cs
- SiteMapDataSource.cs
- ListSourceHelper.cs
- InlinedLocationReference.cs
- StylusPointProperty.cs