Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- XamlFilter.cs
- UrlMapping.cs
- RenderTargetBitmap.cs
- ReferenceService.cs
- DocumentPage.cs
- SelectionBorderGlyph.cs
- ColorConverter.cs
- ReadOnlyHierarchicalDataSourceView.cs
- BitmapEffect.cs
- shaperfactory.cs
- Constraint.cs
- DependencyPropertyChangedEventArgs.cs
- MainMenu.cs
- ArraySortHelper.cs
- ReadOnlyDictionary.cs
- PropertyIdentifier.cs
- SamlAuthorizationDecisionStatement.cs
- XD.cs
- AllMembershipCondition.cs
- smtpconnection.cs
- StreamInfo.cs
- webproxy.cs
- Action.cs
- CustomTrackingRecord.cs
- TextSelectionHelper.cs
- IResourceProvider.cs
- Light.cs
- PropertyGroupDescription.cs
- ChangeNode.cs
- Regex.cs
- ControlBuilder.cs
- PolicyUnit.cs
- ThicknessConverter.cs
- FontCacheLogic.cs
- AuthorizationPolicyTypeElementCollection.cs
- __Error.cs
- LinkGrep.cs
- GeneralTransform3D.cs
- ParallelTimeline.cs
- OneToOneMappingSerializer.cs
- IisTraceListener.cs
- DataGridHeaderBorder.cs
- XmlAttributeAttribute.cs
- HyperLinkDesigner.cs
- CardSpaceException.cs
- DataTemplateSelector.cs
- Bold.cs
- TextBoxRenderer.cs
- MobileControlsSection.cs
- SQLByte.cs
- DotNetATv1WindowsLogEntryDeserializer.cs
- DrawingContextWalker.cs
- ColorConvertedBitmap.cs
- FormsAuthenticationUser.cs
- ListBindingConverter.cs
- CodeObject.cs
- SettingsAttributeDictionary.cs
- FontNamesConverter.cs
- XPathScanner.cs
- xmlsaver.cs
- StorageMappingItemCollection.cs
- Style.cs
- DiscreteKeyFrames.cs
- ConsoleCancelEventArgs.cs
- SafeSecurityHandles.cs
- Accessible.cs
- ResXFileRef.cs
- Executor.cs
- FloaterBaseParaClient.cs
- OneOfConst.cs
- SqlProviderUtilities.cs
- Attributes.cs
- TextTreeInsertElementUndoUnit.cs
- InternalCache.cs
- SmtpFailedRecipientException.cs
- ApplicationDirectory.cs
- Cursor.cs
- SerializerProvider.cs
- CompiledWorkflowDefinitionContext.cs
- NameSpaceExtractor.cs
- CompositeDataBoundControl.cs
- Triangle.cs
- ReliabilityContractAttribute.cs
- SlotInfo.cs
- CommonRemoteMemoryBlock.cs
- DecimalConstantAttribute.cs
- Subtree.cs
- ExpressionEvaluator.cs
- DependencyPropertyConverter.cs
- SystemFonts.cs
- XDeferredAxisSource.cs
- OleServicesContext.cs
- RegexNode.cs
- DBAsyncResult.cs
- UnsafeNativeMethods.cs
- DockProviderWrapper.cs
- Line.cs
- ElementHost.cs
- Context.cs
- SplitterEvent.cs