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
- GenericRootAutomationPeer.cs
- ResourcesChangeInfo.cs
- VectorCollectionConverter.cs
- TextFormattingConverter.cs
- RSACryptoServiceProvider.cs
- ClipboardProcessor.cs
- WebPartPersonalization.cs
- FontWeights.cs
- WindowsListViewItemCheckBox.cs
- DataIdProcessor.cs
- SelectionEditingBehavior.cs
- XmlMemberMapping.cs
- GlobalProxySelection.cs
- DataContext.cs
- PublisherIdentityPermission.cs
- TraceUtility.cs
- DrawingGroup.cs
- ConnectionPoint.cs
- WindowsListView.cs
- SyncMethodInvoker.cs
- DynamicMetaObject.cs
- BaseCodeDomTreeGenerator.cs
- RestHandlerFactory.cs
- SqlParameterCollection.cs
- DataGridTablesFactory.cs
- DataStreams.cs
- RefreshPropertiesAttribute.cs
- ContextStaticAttribute.cs
- ListBoxAutomationPeer.cs
- SelfIssuedAuthRSACryptoProvider.cs
- ResourceAssociationTypeEnd.cs
- SinglePageViewer.cs
- CompositionDesigner.cs
- TypeContext.cs
- PersonalizationStateInfoCollection.cs
- ClassicBorderDecorator.cs
- HScrollProperties.cs
- ZipIOLocalFileBlock.cs
- SmiContext.cs
- SerialReceived.cs
- TextTreeTextElementNode.cs
- XmlLoader.cs
- ListViewUpdateEventArgs.cs
- ImageSourceValueSerializer.cs
- ProtocolsConfigurationEntry.cs
- QueryableFilterUserControl.cs
- InstanceDataCollectionCollection.cs
- PropertyValueChangedEvent.cs
- WmlLabelAdapter.cs
- PropertyChangeTracker.cs
- SessionState.cs
- WebPartConnection.cs
- SelectionProviderWrapper.cs
- UserControlAutomationPeer.cs
- DynamicActivityProperty.cs
- DataSourceExpressionCollection.cs
- _IPv4Address.cs
- ColorBlend.cs
- PasswordRecovery.cs
- ToReply.cs
- IPEndPoint.cs
- SHA384Managed.cs
- BamlVersionHeader.cs
- WinEventHandler.cs
- StackSpiller.Generated.cs
- URLString.cs
- FontStretchConverter.cs
- UnmanagedMemoryAccessor.cs
- EffectiveValueEntry.cs
- ModuleBuilder.cs
- UnionExpr.cs
- OutputCacheSettingsSection.cs
- ListBoxItemAutomationPeer.cs
- EntityKey.cs
- QueryOptionExpression.cs
- SourceElementsCollection.cs
- CompareValidator.cs
- MessagePartSpecification.cs
- HtmlInputImage.cs
- WebPart.cs
- CryptoApi.cs
- TableLayoutSettingsTypeConverter.cs
- UpDownEvent.cs
- MsmqPoisonMessageException.cs
- VirtualizingPanel.cs
- TextModifierScope.cs
- TableCell.cs
- ScrollProperties.cs
- FontFamilyIdentifier.cs
- CompiledIdentityConstraint.cs
- Vector3DKeyFrameCollection.cs
- KnownIds.cs
- UnauthorizedWebPart.cs
- FormsIdentity.cs
- ConnectionProviderAttribute.cs
- PartManifestEntry.cs
- GlyphsSerializer.cs
- BrowsableAttribute.cs
- NodeInfo.cs
- ConsumerConnectionPointCollection.cs