Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- LongCountAggregationOperator.cs
- SQLByte.cs
- AccessDataSourceView.cs
- MethodExpr.cs
- StrokeCollectionConverter.cs
- MediaSystem.cs
- CounterSampleCalculator.cs
- XPathPatternParser.cs
- ListViewTableRow.cs
- AxisAngleRotation3D.cs
- ErrorRuntimeConfig.cs
- TableLayoutSettings.cs
- TextServicesCompartment.cs
- RequiredFieldValidator.cs
- Utils.cs
- FlowSwitchLink.cs
- ToolStripContainerDesigner.cs
- Rfc2898DeriveBytes.cs
- MarshalByValueComponent.cs
- OAVariantLib.cs
- WebPartAddingEventArgs.cs
- Pointer.cs
- WebPartDesigner.cs
- GridLengthConverter.cs
- ITreeGenerator.cs
- ParallelRangeManager.cs
- PageClientProxyGenerator.cs
- StylusPointProperties.cs
- DataGridTemplateColumn.cs
- controlskin.cs
- QilExpression.cs
- ProfilePropertyNameValidator.cs
- ToolStripItemCollection.cs
- DropDownHolder.cs
- SrgsElementList.cs
- GraphicsPath.cs
- CombinedHttpChannel.cs
- XmlSchemaChoice.cs
- SiteMapProvider.cs
- DocComment.cs
- ActiveXSite.cs
- TextEditor.cs
- TextDecoration.cs
- Tag.cs
- CultureTable.cs
- HttpListenerElement.cs
- ToolStripGripRenderEventArgs.cs
- XamlDesignerSerializationManager.cs
- CacheChildrenQuery.cs
- ParallelTimeline.cs
- webeventbuffer.cs
- CngUIPolicy.cs
- OdbcHandle.cs
- SplitterEvent.cs
- Soap12FormatExtensions.cs
- FileResponseElement.cs
- LocatorPartList.cs
- X509Utils.cs
- SqlProcedureAttribute.cs
- PublishLicense.cs
- SchemaEntity.cs
- SimpleApplicationHost.cs
- CheckoutException.cs
- ComEventsMethod.cs
- WindowPattern.cs
- WindowsSolidBrush.cs
- ObjectSet.cs
- MSAAEventDispatcher.cs
- InkCanvasInnerCanvas.cs
- LinkedList.cs
- ButtonBaseAdapter.cs
- NativeCppClassAttribute.cs
- NameValueSectionHandler.cs
- TokenBasedSet.cs
- LicenseManager.cs
- VScrollBar.cs
- WebPartConnectionsConnectVerb.cs
- AnnotationStore.cs
- SqlUDTStorage.cs
- TransformerInfo.cs
- SiteMapNodeItemEventArgs.cs
- XMLSyntaxException.cs
- MiniMapControl.xaml.cs
- Int16Animation.cs
- TextSyndicationContent.cs
- FormatVersion.cs
- DragDeltaEventArgs.cs
- PropertiesTab.cs
- CollectionViewSource.cs
- XamlFilter.cs
- SecurityAccessDeniedException.cs
- ScaleTransform3D.cs
- PositiveTimeSpanValidatorAttribute.cs
- ResourcesBuildProvider.cs
- ReadOnlyDataSourceView.cs
- CallId.cs
- Evidence.cs
- DeviceContexts.cs
- SurrogateEncoder.cs
- MethodSet.cs