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
- Point3DConverter.cs
- TableRowCollection.cs
- NavigatingCancelEventArgs.cs
- altserialization.cs
- DefaultObjectMappingItemCollection.cs
- Propagator.JoinPropagator.cs
- EntitySqlQueryState.cs
- SqlRecordBuffer.cs
- SHA384Cng.cs
- ToolStripOverflowButton.cs
- XpsViewerException.cs
- TreeViewEvent.cs
- ReaderOutput.cs
- ColumnPropertiesGroup.cs
- RestHandlerFactory.cs
- recordstatescratchpad.cs
- RedistVersionInfo.cs
- LocalizableResourceBuilder.cs
- ToolStripPanelRenderEventArgs.cs
- DataGridViewImageColumn.cs
- ModuleConfigurationInfo.cs
- ReachPageContentSerializer.cs
- DataGridTextBox.cs
- FormViewDeletedEventArgs.cs
- Wrapper.cs
- BamlBinaryWriter.cs
- TypeDescriptor.cs
- ExceptionAggregator.cs
- RuntimeCompatibilityAttribute.cs
- SoapFormatExtensions.cs
- SQLCharsStorage.cs
- BrowsableAttribute.cs
- WebBaseEventKeyComparer.cs
- ByteStreamMessage.cs
- TreeBuilderBamlTranslator.cs
- Delegate.cs
- XmlEntityReference.cs
- TransformationRules.cs
- TableLayoutCellPaintEventArgs.cs
- AssemblyNameProxy.cs
- ConfigXmlWhitespace.cs
- PenCursorManager.cs
- WorkItem.cs
- CodeDOMProvider.cs
- PanelDesigner.cs
- ObjectContextServiceProvider.cs
- QilChoice.cs
- ListMarkerLine.cs
- WindowsAltTab.cs
- WebControlAdapter.cs
- ObjectDataSourceView.cs
- SmtpTransport.cs
- BamlLocalizationDictionary.cs
- CacheOutputQuery.cs
- MissingSatelliteAssemblyException.cs
- HttpHeaderCollection.cs
- GridViewUpdatedEventArgs.cs
- NamespaceInfo.cs
- TextEditorTyping.cs
- GreenMethods.cs
- EntityDataSourceView.cs
- CornerRadius.cs
- XmlILTrace.cs
- RegexParser.cs
- NetTcpBindingCollectionElement.cs
- XmlSchemaExporter.cs
- IntSecurity.cs
- CalendarDesigner.cs
- RoleManagerEventArgs.cs
- CultureSpecificStringDictionary.cs
- ConstrainedDataObject.cs
- UnsafeNativeMethods.cs
- SqlProviderManifest.cs
- Material.cs
- TreeNodeBinding.cs
- PartialTrustVisibleAssembly.cs
- BinaryKeyIdentifierClause.cs
- X509Certificate.cs
- Header.cs
- StreamWithDictionary.cs
- TypedReference.cs
- QualifiedCellIdBoolean.cs
- HMACSHA1.cs
- Connection.cs
- Span.cs
- RawStylusInputReport.cs
- SchemaElementLookUpTable.cs
- ListBindingConverter.cs
- CryptoProvider.cs
- RegistryPermission.cs
- UnmanagedHandle.cs
- TextRunProperties.cs
- odbcmetadatacolumnnames.cs
- CompoundFileDeflateTransform.cs
- WindowsGraphics.cs
- BindToObject.cs
- OrderedDictionaryStateHelper.cs
- TextTreeRootTextBlock.cs
- Accessible.cs
- Events.cs