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
- XmlDataCollection.cs
- DataColumnPropertyDescriptor.cs
- ResizeGrip.cs
- PeerChannelListener.cs
- XmlSchemaAll.cs
- RowToFieldTransformer.cs
- WinEventHandler.cs
- XmlNotation.cs
- METAHEADER.cs
- PolyLineSegmentFigureLogic.cs
- HostingEnvironment.cs
- MarshalByValueComponent.cs
- ServiceElement.cs
- PrimaryKeyTypeConverter.cs
- RegularExpressionValidator.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- ListParagraph.cs
- KeyManager.cs
- Win32NamedPipes.cs
- ManualResetEventSlim.cs
- ModelVisual3D.cs
- FixedSOMTable.cs
- DataGridViewLayoutData.cs
- EventProviderWriter.cs
- LinkUtilities.cs
- ConstrainedDataObject.cs
- MemoryStream.cs
- PtsContext.cs
- Utils.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- BitmapEditor.cs
- Util.cs
- MatrixAnimationBase.cs
- WebPartActionVerb.cs
- TypographyProperties.cs
- TextBox.cs
- GeneralTransformGroup.cs
- IndicCharClassifier.cs
- GenericTextProperties.cs
- XsltOutput.cs
- XmlElementAttributes.cs
- FragmentNavigationEventArgs.cs
- MatcherBuilder.cs
- SqlCaseSimplifier.cs
- HttpCacheVary.cs
- FormViewInsertEventArgs.cs
- ZipIOBlockManager.cs
- PassportPrincipal.cs
- FixedSOMContainer.cs
- SequenceDesignerAccessibleObject.cs
- ClassHandlersStore.cs
- AsyncStreamReader.cs
- BigInt.cs
- QueryNode.cs
- RootAction.cs
- TeredoHelper.cs
- WindowsGraphics2.cs
- ToolStripGripRenderEventArgs.cs
- PropertyOverridesDialog.cs
- TemplateLookupAction.cs
- XmlAnyAttributeAttribute.cs
- ManagementDateTime.cs
- EnumUnknown.cs
- TrackBar.cs
- SharedStatics.cs
- PathSegmentCollection.cs
- RoutedCommand.cs
- AssemblyBuilder.cs
- FormsAuthenticationEventArgs.cs
- ItemPager.cs
- DataReaderContainer.cs
- ClientSection.cs
- SerializationSectionGroup.cs
- ProcessProtocolHandler.cs
- FaultBookmark.cs
- Win32SafeHandles.cs
- ContractsBCL.cs
- WizardDesigner.cs
- Propagator.JoinPropagator.cs
- PointIndependentAnimationStorage.cs
- ColorMap.cs
- StringBuilder.cs
- KnowledgeBase.cs
- OdbcConnectionString.cs
- QilNode.cs
- CrossSiteScriptingValidation.cs
- ProtocolElement.cs
- IIS7WorkerRequest.cs
- QilParameter.cs
- ImageConverter.cs
- OracleLob.cs
- WindowInteractionStateTracker.cs
- MediaContextNotificationWindow.cs
- WebConvert.cs
- IntPtr.cs
- TextBlockAutomationPeer.cs
- CharStorage.cs
- SqlRowUpdatedEvent.cs
- FlowPosition.cs
- SliderAutomationPeer.cs