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
- Profiler.cs
- BinaryWriter.cs
- RtfControlWordInfo.cs
- cryptoapiTransform.cs
- MetaTableHelper.cs
- BaseParaClient.cs
- DataColumnMappingCollection.cs
- XpsS0ValidatingLoader.cs
- TextWriterTraceListener.cs
- WebPart.cs
- DataGridToolTip.cs
- HttpServerUtilityWrapper.cs
- StateRuntime.cs
- ListBindableAttribute.cs
- SeekStoryboard.cs
- AdjustableArrowCap.cs
- SecurityHelper.cs
- DesignTimeValidationFeature.cs
- AttributeProviderAttribute.cs
- PropertyTab.cs
- RoleManagerSection.cs
- AnimatedTypeHelpers.cs
- PartManifestEntry.cs
- SelectionEditor.cs
- SiteMap.cs
- WorkflowOwnerAsyncResult.cs
- ObjectConverter.cs
- SQLBinaryStorage.cs
- RSAOAEPKeyExchangeDeformatter.cs
- DynamicDocumentPaginator.cs
- ChameleonKey.cs
- CrossContextChannel.cs
- MenuItem.cs
- Translator.cs
- SecurityMessageProperty.cs
- ListManagerBindingsCollection.cs
- _LazyAsyncResult.cs
- Memoizer.cs
- AppDomainAttributes.cs
- EventHandlersStore.cs
- MaskInputRejectedEventArgs.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- LabelEditEvent.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- DtdParser.cs
- Guid.cs
- ManagedWndProcTracker.cs
- XsltConvert.cs
- GraphicsPathIterator.cs
- BaseHashHelper.cs
- TypedReference.cs
- DragStartedEventArgs.cs
- ComboBox.cs
- WebControlsSection.cs
- MessageDecoder.cs
- EntityParameterCollection.cs
- ListParaClient.cs
- TableParaClient.cs
- Registration.cs
- SettingsSection.cs
- Message.cs
- RayMeshGeometry3DHitTestResult.cs
- UserValidatedEventArgs.cs
- BindMarkupExtensionSerializer.cs
- HtmlAnchor.cs
- DtrList.cs
- VirtualDirectoryMapping.cs
- OutputCacheProfileCollection.cs
- FixedSOMTableRow.cs
- JsonUriDataContract.cs
- XPathSelfQuery.cs
- DesignerUtility.cs
- KeyConverter.cs
- SiteMapDataSourceView.cs
- DataGridViewRowCancelEventArgs.cs
- Graphics.cs
- HttpModulesInstallComponent.cs
- QilUnary.cs
- Command.cs
- LinkArea.cs
- CrossSiteScriptingValidation.cs
- DoubleUtil.cs
- CannotUnloadAppDomainException.cs
- FileInfo.cs
- BufferedWebEventProvider.cs
- DataSourceControl.cs
- JavaScriptObjectDeserializer.cs
- PropertyTab.cs
- CodeArrayCreateExpression.cs
- DataBindingCollection.cs
- BindingsCollection.cs
- MimeTypeMapper.cs
- ModuleBuilderData.cs
- RefType.cs
- FillRuleValidation.cs
- Pen.cs
- PropertyItem.cs
- AutomationElement.cs
- FullTextState.cs
- LocatorPart.cs