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
- Environment.cs
- DataGridViewSelectedRowCollection.cs
- CatalogPartCollection.cs
- RandomNumberGenerator.cs
- RenderContext.cs
- FullTextState.cs
- ApplicationDirectory.cs
- LifetimeMonitor.cs
- updatecommandorderer.cs
- ActivityExecutor.cs
- UnsafeNativeMethodsCLR.cs
- _OSSOCK.cs
- Menu.cs
- DockAndAnchorLayout.cs
- QueryableDataSourceView.cs
- Classification.cs
- ExtenderProvidedPropertyAttribute.cs
- MobileContainerDesigner.cs
- Rijndael.cs
- ClientUtils.cs
- PriorityBindingExpression.cs
- Errors.cs
- UnmanagedMarshal.cs
- EmbossBitmapEffect.cs
- AnnouncementClient.cs
- RoleManagerEventArgs.cs
- DataBoundControlAdapter.cs
- ProfileProvider.cs
- NavigationWindow.cs
- AssemblyCollection.cs
- DataGridViewCellCancelEventArgs.cs
- TemplateKey.cs
- AppDomain.cs
- PathFigureCollection.cs
- ForceCopyBuildProvider.cs
- HttpCapabilitiesSectionHandler.cs
- AsyncResult.cs
- MailWriter.cs
- templategroup.cs
- ClientWindowsAuthenticationMembershipProvider.cs
- TextTreeUndoUnit.cs
- HashMembershipCondition.cs
- ByteAnimationUsingKeyFrames.cs
- Style.cs
- ObjectViewEntityCollectionData.cs
- SrgsOneOf.cs
- UserPersonalizationStateInfo.cs
- TypeLoadException.cs
- SymLanguageType.cs
- HashCryptoHandle.cs
- Interlocked.cs
- HttpProfileBase.cs
- LOSFormatter.cs
- SafeViewOfFileHandle.cs
- KeyConverter.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- XPathAxisIterator.cs
- TypedTableBaseExtensions.cs
- ColorTransformHelper.cs
- ChannelManager.cs
- ComPlusServiceHost.cs
- PerfService.cs
- EmbeddedMailObject.cs
- BoundsDrawingContextWalker.cs
- FormViewDeleteEventArgs.cs
- CmsInterop.cs
- WindowsFormsHostAutomationPeer.cs
- Unit.cs
- EntityAdapter.cs
- SQLGuid.cs
- CustomValidator.cs
- ProfilePropertySettingsCollection.cs
- RijndaelManagedTransform.cs
- TraceHandler.cs
- XmlNotation.cs
- ChtmlLinkAdapter.cs
- Exception.cs
- BindingEntityInfo.cs
- Transform3D.cs
- WinEventQueueItem.cs
- recordstatescratchpad.cs
- ResourceDescriptionAttribute.cs
- StringAnimationUsingKeyFrames.cs
- WindowsAuthenticationEventArgs.cs
- FileLogRecordStream.cs
- MapPathBasedVirtualPathProvider.cs
- AspNetSynchronizationContext.cs
- AnnotationObservableCollection.cs
- AssociatedControlConverter.cs
- Label.cs
- basemetadatamappingvisitor.cs
- XmlSchemaAttributeGroup.cs
- AmbientLight.cs
- WorkflowInstanceAbortedRecord.cs
- DataGridViewColumnStateChangedEventArgs.cs
- GradientStop.cs
- MonitoringDescriptionAttribute.cs
- PeerCollaborationPermission.cs
- SiteMapPath.cs
- EmptyQuery.cs