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
- _TLSstream.cs
- LinkedList.cs
- basecomparevalidator.cs
- NonSerializedAttribute.cs
- UserControlDesigner.cs
- QilList.cs
- ProxyManager.cs
- ParameterRetriever.cs
- X509CertificateValidator.cs
- MenuAutomationPeer.cs
- Italic.cs
- BrowserCapabilitiesCodeGenerator.cs
- NameValuePair.cs
- BackoffTimeoutHelper.cs
- Brushes.cs
- ResourcePool.cs
- BooleanToVisibilityConverter.cs
- Identifier.cs
- TreeViewTemplateSelector.cs
- DropSource.cs
- CustomValidator.cs
- MLangCodePageEncoding.cs
- XmlDomTextWriter.cs
- InvalidFilterCriteriaException.cs
- Int16KeyFrameCollection.cs
- IndentTextWriter.cs
- EventWaitHandle.cs
- SimpleWorkerRequest.cs
- contentDescriptor.cs
- _LoggingObject.cs
- EntityCodeGenerator.cs
- mda.cs
- WrapPanel.cs
- XsltLoader.cs
- DeviceContext.cs
- ListBindableAttribute.cs
- RotateTransform3D.cs
- ResourceExpression.cs
- BinHexDecoder.cs
- HeaderedItemsControl.cs
- InfiniteTimeSpanConverter.cs
- ErasingStroke.cs
- EpmSyndicationContentDeSerializer.cs
- ErrorsHelper.cs
- WhitespaceRuleLookup.cs
- Size.cs
- NavigationHelper.cs
- DisplayInformation.cs
- EFTableProvider.cs
- NativeObjectSecurity.cs
- Win32PrintDialog.cs
- FormViewUpdatedEventArgs.cs
- StorageRoot.cs
- COM2PropertyPageUITypeConverter.cs
- AccessDataSourceDesigner.cs
- DesignerResources.cs
- ContainerActivationHelper.cs
- DataGridViewAccessibleObject.cs
- GlyphInfoList.cs
- AuthenticateEventArgs.cs
- HotSpot.cs
- keycontainerpermission.cs
- TreeViewEvent.cs
- SqlBooleanizer.cs
- HttpCookie.cs
- HttpRequest.cs
- AuthenticationService.cs
- SqlMetaData.cs
- Propagator.Evaluator.cs
- MonthChangedEventArgs.cs
- RtfToXamlLexer.cs
- Enlistment.cs
- SignedPkcs7.cs
- FixedPageProcessor.cs
- Geometry3D.cs
- ZipIOExtraFieldElement.cs
- SmtpException.cs
- HttpValueCollection.cs
- InternalMappingException.cs
- XmlCharacterData.cs
- ViewManager.cs
- MultiSelectRootGridEntry.cs
- UIElementIsland.cs
- ConfigurationException.cs
- TextCompositionEventArgs.cs
- dsa.cs
- StaticResourceExtension.cs
- InlineObject.cs
- DataGridViewHeaderCell.cs
- Camera.cs
- ModelEditingScope.cs
- PrintController.cs
- ExpressionBuilder.cs
- WebBrowserSiteBase.cs
- TreeNodeEventArgs.cs
- WhiteSpaceTrimStringConverter.cs
- PropertyRecord.cs
- BlobPersonalizationState.cs
- CallSiteHelpers.cs
- RowsCopiedEventArgs.cs