Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- IdnMapping.cs
- NullRuntimeConfig.cs
- FixedSOMSemanticBox.cs
- InputLangChangeRequestEvent.cs
- StreamGeometryContext.cs
- XMLDiffLoader.cs
- ModuleElement.cs
- Queue.cs
- ComboBoxDesigner.cs
- Utils.cs
- AutoGeneratedFieldProperties.cs
- PathSegmentCollection.cs
- BridgeDataRecord.cs
- TextRangeEditLists.cs
- EllipseGeometry.cs
- StringSorter.cs
- TrustLevel.cs
- ListBoxAutomationPeer.cs
- InputDevice.cs
- JapaneseLunisolarCalendar.cs
- PkcsUtils.cs
- SizeFConverter.cs
- EncoderExceptionFallback.cs
- SystemWebCachingSectionGroup.cs
- ExpressionVisitorHelpers.cs
- Socket.cs
- ExtensionFile.cs
- GeometryCollection.cs
- X509Certificate2.cs
- HtmlToClrEventProxy.cs
- HandlerFactoryWrapper.cs
- WebControlToolBoxItem.cs
- ListView.cs
- BufferedStream.cs
- XPathDocumentIterator.cs
- ZipQueryOperator.cs
- objectquery_tresulttype.cs
- LogArchiveSnapshot.cs
- ConnectivityStatus.cs
- KeyConverter.cs
- QilScopedVisitor.cs
- ServiceModelExtensionCollectionElement.cs
- Timer.cs
- RSAOAEPKeyExchangeDeformatter.cs
- RoutedUICommand.cs
- LogSwitch.cs
- ByteAnimation.cs
- Decimal.cs
- Variable.cs
- ResourceCollectionInfo.cs
- Roles.cs
- ClonableStack.cs
- CaseInsensitiveOrdinalStringComparer.cs
- DataConnectionHelper.cs
- BaseCollection.cs
- FontStretchConverter.cs
- securitycriticaldataClass.cs
- CaseStatementProjectedSlot.cs
- SQLMembershipProvider.cs
- TrackingServices.cs
- KnownBoxes.cs
- ModelVisual3D.cs
- FacetDescriptionElement.cs
- GridViewRowEventArgs.cs
- PageParserFilter.cs
- ChangeBlockUndoRecord.cs
- ADMembershipUser.cs
- TableLayoutColumnStyleCollection.cs
- _Connection.cs
- FactoryGenerator.cs
- TextTreeTextNode.cs
- MobileCapabilities.cs
- DataGridViewTextBoxCell.cs
- ImportException.cs
- _LazyAsyncResult.cs
- TextTreeTextBlock.cs
- BehaviorEditorPart.cs
- PolicyStatement.cs
- ImageSource.cs
- ArraySubsetEnumerator.cs
- __TransparentProxy.cs
- StorageRoot.cs
- HtmlToClrEventProxy.cs
- _FtpControlStream.cs
- ProcessInfo.cs
- InfocardExtendedInformationCollection.cs
- KnownTypesProvider.cs
- X509CertificateCollection.cs
- DateTimePicker.cs
- SevenBitStream.cs
- Translator.cs
- ElementsClipboardData.cs
- URIFormatException.cs
- CannotUnloadAppDomainException.cs
- ApplicationId.cs
- ConstNode.cs
- PenLineCapValidation.cs
- COM2ExtendedTypeConverter.cs
- SafeThreadHandle.cs
- SqlProvider.cs