Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / XPath / Internal / ClonableStack.cs / 1305376 / 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
- OleDbConnectionFactory.cs
- LinqToSqlWrapper.cs
- BuilderPropertyEntry.cs
- ObjectToModelValueConverter.cs
- __TransparentProxy.cs
- HtmlElementCollection.cs
- Connector.cs
- CancelAsyncOperationRequest.cs
- SQLUtility.cs
- DocumentsTrace.cs
- CircleHotSpot.cs
- WindowsGraphicsWrapper.cs
- DbFunctionCommandTree.cs
- ByteAnimationBase.cs
- TextWriter.cs
- Crypto.cs
- PresentationTraceSources.cs
- FormParameter.cs
- CompositeKey.cs
- DispatcherExceptionEventArgs.cs
- SendMailErrorEventArgs.cs
- ToolStripDropDownItem.cs
- HTMLTagNameToTypeMapper.cs
- ListParaClient.cs
- SelectedCellsCollection.cs
- dataobject.cs
- RawStylusInputCustomData.cs
- UIElementParagraph.cs
- Table.cs
- ListView.cs
- MessageQueueConverter.cs
- SatelliteContractVersionAttribute.cs
- EntitySet.cs
- SendActivity.cs
- WebPart.cs
- FormatterConverter.cs
- DiscoveryDocument.cs
- PropertyMetadata.cs
- validationstate.cs
- ColorTransformHelper.cs
- XmlBoundElement.cs
- CustomError.cs
- VoiceChangeEventArgs.cs
- CallbackDebugElement.cs
- GeneralTransform2DTo3DTo2D.cs
- EmptyQuery.cs
- MasterPageParser.cs
- ReadOnlyState.cs
- Stylesheet.cs
- BinaryConverter.cs
- InkCanvasSelectionAdorner.cs
- XmlSchemaImporter.cs
- XamlReader.cs
- EmbeddedObject.cs
- ChildTable.cs
- OuterGlowBitmapEffect.cs
- DescendantQuery.cs
- DropSource.cs
- IsolatedStorage.cs
- Asn1IntegerConverter.cs
- UpdateEventArgs.cs
- IMembershipProvider.cs
- AssemblyInfo.cs
- ArgumentNullException.cs
- ObjectStateFormatter.cs
- ModelProperty.cs
- Parameter.cs
- Thread.cs
- Color.cs
- DropShadowEffect.cs
- cryptoapiTransform.cs
- QuaternionRotation3D.cs
- AuthorizationBehavior.cs
- Util.cs
- RankException.cs
- FontInfo.cs
- PathGeometry.cs
- AbsoluteQuery.cs
- BitmapEffectGeneralTransform.cs
- TableHeaderCell.cs
- ForEachAction.cs
- CodeVariableDeclarationStatement.cs
- ApplicationServiceHelper.cs
- Vector.cs
- CompilationLock.cs
- xsdvalidator.cs
- AppDomainManager.cs
- TextParagraphCache.cs
- ReceiveMessageContent.cs
- DynamicUpdateCommand.cs
- WebBrowserHelper.cs
- TraceContextEventArgs.cs
- CopyNamespacesAction.cs
- ProjectedSlot.cs
- LayoutSettings.cs
- FlowDocumentScrollViewer.cs
- OuterGlowBitmapEffect.cs
- StringFreezingAttribute.cs
- Rectangle.cs
- TabPage.cs