Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HotCommands.cs
- ClientScriptManagerWrapper.cs
- SiteMapDesignerDataSourceView.cs
- AddInProcess.cs
- LinkClickEvent.cs
- DatePickerAutomationPeer.cs
- XmlQualifiedNameTest.cs
- RelatedImageListAttribute.cs
- CultureTable.cs
- OdbcConnectionStringbuilder.cs
- XmlDigitalSignatureProcessor.cs
- BindingWorker.cs
- IndexingContentUnit.cs
- Vector.cs
- FlowLayoutPanel.cs
- OletxResourceManager.cs
- DbConnectionPoolGroupProviderInfo.cs
- ColorTransform.cs
- AutoGeneratedField.cs
- PlainXmlWriter.cs
- OdbcPermission.cs
- CodeGenerationManager.cs
- TargetFrameworkAttribute.cs
- MatrixTransform.cs
- XmlChoiceIdentifierAttribute.cs
- ProfileSettingsCollection.cs
- NavigationHelper.cs
- DataRecordObjectView.cs
- IfJoinedCondition.cs
- VirtualizedItemProviderWrapper.cs
- SerializationFieldInfo.cs
- EventLogEntryCollection.cs
- DiscoveryReferences.cs
- BuildManager.cs
- HtmlWindow.cs
- CheckPair.cs
- XNodeSchemaApplier.cs
- WorkflowQueuingService.cs
- ExpandSegmentCollection.cs
- PerformanceCounterLib.cs
- UrlPath.cs
- webeventbuffer.cs
- IIS7WorkerRequest.cs
- WCFBuildProvider.cs
- AlphabetConverter.cs
- SecurityDescriptor.cs
- EDesignUtil.cs
- IndentTextWriter.cs
- UseLicense.cs
- DataBoundControlHelper.cs
- SystemWebSectionGroup.cs
- ProgressPage.cs
- PointHitTestParameters.cs
- SQLDateTimeStorage.cs
- DesignTimeDataBinding.cs
- TemplateBindingExtensionConverter.cs
- TextShapeableCharacters.cs
- Helper.cs
- SqlStream.cs
- WebBaseEventKeyComparer.cs
- AvTraceDetails.cs
- SuppressedPackageProperties.cs
- SystemSounds.cs
- _RequestCacheProtocol.cs
- WebHostedComPlusServiceHost.cs
- SiteMapNode.cs
- CompressedStack.cs
- DragCompletedEventArgs.cs
- DateTimeConverter2.cs
- WebPartHeaderCloseVerb.cs
- ServiceModelConfigurationElementCollection.cs
- KeySpline.cs
- LinkedList.cs
- SelectedGridItemChangedEvent.cs
- UnsafeNativeMethodsMilCoreApi.cs
- Update.cs
- __TransparentProxy.cs
- OpenTypeMethods.cs
- TypeKeyValue.cs
- KerberosSecurityTokenProvider.cs
- ImplicitInputBrush.cs
- CryptoApi.cs
- Point3DAnimation.cs
- Transform3D.cs
- IteratorFilter.cs
- HtmlAnchor.cs
- Group.cs
- SelectionItemProviderWrapper.cs
- TlsSspiNegotiation.cs
- StringToken.cs
- DataIdProcessor.cs
- CharConverter.cs
- CollectionEditorDialog.cs
- _ShellExpression.cs
- TranslateTransform.cs
- SqlUDTStorage.cs
- OleCmdHelper.cs
- CodeConstructor.cs
- DataGridViewCell.cs
- EncodingTable.cs