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
- HttpRequestCacheValidator.cs
- MenuCommand.cs
- ComponentChangingEvent.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- ControlCommandSet.cs
- HiddenField.cs
- SizeChangedInfo.cs
- StringKeyFrameCollection.cs
- PreviewKeyDownEventArgs.cs
- ListDictionary.cs
- RecognizedAudio.cs
- PenThreadWorker.cs
- WsdlParser.cs
- PersonalizationProvider.cs
- CompilationSection.cs
- HandledMouseEvent.cs
- MessageQueuePermissionEntry.cs
- DecimalAverageAggregationOperator.cs
- SevenBitStream.cs
- SplineQuaternionKeyFrame.cs
- TemplateKeyConverter.cs
- SafeCryptContextHandle.cs
- OwnerDrawPropertyBag.cs
- SettingsSavedEventArgs.cs
- ApplicationBuildProvider.cs
- SymLanguageType.cs
- followingquery.cs
- ProfilePropertyNameValidator.cs
- XsdDataContractExporter.cs
- BinaryParser.cs
- RootNamespaceAttribute.cs
- VarInfo.cs
- DelimitedListTraceListener.cs
- DayRenderEvent.cs
- DrawingContext.cs
- PictureBoxDesigner.cs
- WsdlBuildProvider.cs
- PerformanceCounterCategory.cs
- Bits.cs
- GetImportedCardRequest.cs
- TextEditorCopyPaste.cs
- ListenerPerfCounters.cs
- ValidationResults.cs
- CalendarButton.cs
- HttpPostedFile.cs
- IsolatedStoragePermission.cs
- DllHostedComPlusServiceHost.cs
- FileAuthorizationModule.cs
- ExpressionReplacer.cs
- ProfilePropertyNameValidator.cs
- RegexTree.cs
- Visual3DCollection.cs
- SqlGatherConsumedAliases.cs
- CallbackException.cs
- IgnorePropertiesAttribute.cs
- PersonalizationProviderHelper.cs
- FilteredReadOnlyMetadataCollection.cs
- Win32Native.cs
- DataGrid.cs
- UIElementParagraph.cs
- SqlMultiplexer.cs
- TreeNodeCollection.cs
- CodePrimitiveExpression.cs
- SecurityKeyIdentifierClause.cs
- ThrowHelper.cs
- SecurityTokenValidationException.cs
- Trace.cs
- NativeMethods.cs
- BaseInfoTable.cs
- DescendentsWalkerBase.cs
- ConfigurationFileMap.cs
- DynamicDataRouteHandler.cs
- FontEmbeddingManager.cs
- AdvancedBindingEditor.cs
- SettingsProviderCollection.cs
- SelectionProviderWrapper.cs
- HttpProfileGroupBase.cs
- DataMisalignedException.cs
- DataSourceView.cs
- GridPattern.cs
- CheckBoxAutomationPeer.cs
- LineProperties.cs
- WinInetCache.cs
- ActiveDesignSurfaceEvent.cs
- FontCacheUtil.cs
- VersionedStreamOwner.cs
- CheckBoxList.cs
- LocatorManager.cs
- TextOptions.cs
- RemotingConfigParser.cs
- CodeDOMUtility.cs
- UdpDuplexChannel.cs
- XPathNodePointer.cs
- SHA1.cs
- WebReferenceOptions.cs
- StyleTypedPropertyAttribute.cs
- DBConnectionString.cs
- InputReport.cs
- DataGridViewLinkColumn.cs
- TextureBrush.cs