Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- DataListCommandEventArgs.cs
- BoolExpression.cs
- XPathCompileException.cs
- AmbientValueAttribute.cs
- TextServicesManager.cs
- _BaseOverlappedAsyncResult.cs
- MessageVersion.cs
- CalendarDay.cs
- Int32CollectionConverter.cs
- TableCell.cs
- QuestionEventArgs.cs
- RowToParametersTransformer.cs
- ModelItemExtensions.cs
- AuthenticationServiceManager.cs
- Bits.cs
- SafeFileHandle.cs
- XslAstAnalyzer.cs
- GeometryModel3D.cs
- EventListener.cs
- SymLanguageVendor.cs
- RenderContext.cs
- InvalidCastException.cs
- ImageSource.cs
- HtmlLink.cs
- CustomPopupPlacement.cs
- validationstate.cs
- MetadataWorkspace.cs
- XmlSerializerSection.cs
- EntityContainerEmitter.cs
- CatchDesigner.xaml.cs
- TableCell.cs
- OutKeywords.cs
- AppDomainProtocolHandler.cs
- StringComparer.cs
- GeneratedView.cs
- XhtmlConformanceSection.cs
- ShapingEngine.cs
- DeferredReference.cs
- SynchronizedPool.cs
- WebResourceUtil.cs
- XmlC14NWriter.cs
- LoadRetryConstantStrategy.cs
- ProfileGroupSettings.cs
- FastPropertyAccessor.cs
- GiveFeedbackEvent.cs
- PathFigureCollection.cs
- MediaElementAutomationPeer.cs
- StackSpiller.Bindings.cs
- MenuItem.cs
- Transform.cs
- CodeCommentStatementCollection.cs
- PartialTrustVisibleAssemblyCollection.cs
- BooleanKeyFrameCollection.cs
- SimpleNameService.cs
- FrameworkTextComposition.cs
- X509Chain.cs
- TableItemStyle.cs
- IntSecurity.cs
- ExecutionContext.cs
- FontSizeConverter.cs
- CloudCollection.cs
- TableCell.cs
- ClientConfigPaths.cs
- OracleRowUpdatingEventArgs.cs
- ColumnHeaderConverter.cs
- HttpValueCollection.cs
- QueryOptionExpression.cs
- ItemCheckEvent.cs
- LinqTreeNodeEvaluator.cs
- ADConnectionHelper.cs
- XmlSchemaProviderAttribute.cs
- DiscoveryOperationContext.cs
- EntityReference.cs
- SortedDictionary.cs
- JavaScriptSerializer.cs
- DetailsViewInsertedEventArgs.cs
- Style.cs
- ComPersistableTypeElementCollection.cs
- SettingsPropertyValue.cs
- NamedPipeHostedTransportConfiguration.cs
- TextEditorParagraphs.cs
- TemplateNameScope.cs
- TextBoxBase.cs
- DoubleStorage.cs
- DbConnectionPoolIdentity.cs
- StateDesigner.TransitionInfo.cs
- IDictionary.cs
- InvokeFunc.cs
- Encoder.cs
- PreDigestedSignedInfo.cs
- WebZone.cs
- CodePageEncoding.cs
- JapaneseLunisolarCalendar.cs
- XamlSerializerUtil.cs
- ObjectDataSourceDisposingEventArgs.cs
- ChangeDirector.cs
- BinaryOperationBinder.cs
- ThrowHelper.cs
- SpnegoTokenAuthenticator.cs
- ResourceProviderFactory.cs