Code:
/ DotNET / DotNET / 8.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
- EdmType.cs
- SpecialFolderEnumConverter.cs
- ConstrainedDataObject.cs
- ConfigUtil.cs
- ClientSettingsStore.cs
- WindowsListViewGroupSubsetLink.cs
- MeasureItemEvent.cs
- DescendantQuery.cs
- CorrelationService.cs
- TrackingQuery.cs
- DecoderReplacementFallback.cs
- WebServiceMethodData.cs
- PropertyMapper.cs
- NotifyCollectionChangedEventArgs.cs
- WebPartMinimizeVerb.cs
- BindingExpressionUncommonField.cs
- SystemFonts.cs
- ControlBuilder.cs
- DllNotFoundException.cs
- GlyphRunDrawing.cs
- EventProxy.cs
- initElementDictionary.cs
- XsltInput.cs
- MarkupExtensionParser.cs
- MediaTimeline.cs
- _ServiceNameStore.cs
- KeyTimeConverter.cs
- CodeGeneratorOptions.cs
- RemotingAttributes.cs
- DelimitedListTraceListener.cs
- SchemaType.cs
- OverflowException.cs
- SegmentInfo.cs
- QueueProcessor.cs
- WindowsIPAddress.cs
- PointCollectionConverter.cs
- DataShape.cs
- InputProviderSite.cs
- HttpResponseInternalWrapper.cs
- EUCJPEncoding.cs
- QueryResponse.cs
- HtmlEmptyTagControlBuilder.cs
- PersonalizationAdministration.cs
- DateTimeFormatInfo.cs
- CompletionBookmark.cs
- WMICapabilities.cs
- CacheDependency.cs
- RuleSettingsCollection.cs
- SmiMetaData.cs
- TriggerBase.cs
- EdmSchemaError.cs
- MeshGeometry3D.cs
- AppDomainFactory.cs
- FocusChangedEventArgs.cs
- StrokeIntersection.cs
- XamlRtfConverter.cs
- ScriptBehaviorDescriptor.cs
- OpenFileDialog.cs
- LayoutEditorPart.cs
- ScrollBarAutomationPeer.cs
- WorkflowPersistenceContext.cs
- SqlUDTStorage.cs
- StreamResourceInfo.cs
- ClientRoleProvider.cs
- TraceUtility.cs
- ProfileBuildProvider.cs
- AudioSignalProblemOccurredEventArgs.cs
- XmlSchemaAttributeGroupRef.cs
- _ConnectionGroup.cs
- FixedSOMPageConstructor.cs
- InfocardInteractiveChannelInitializer.cs
- BaseCollection.cs
- GlyphRunDrawing.cs
- SessionPageStateSection.cs
- SqlTransaction.cs
- PingReply.cs
- WebScriptServiceHost.cs
- SurrogateEncoder.cs
- Point.cs
- QfeChecker.cs
- WebBrowserNavigatingEventHandler.cs
- InvalidCastException.cs
- ParentUndoUnit.cs
- Int32Storage.cs
- FileClassifier.cs
- HitTestParameters3D.cs
- ConfigurationHelpers.cs
- RuntimeIdentifierPropertyAttribute.cs
- XmlWrappingWriter.cs
- BitmapSizeOptions.cs
- CultureTable.cs
- ToolStripContainer.cs
- UrlMappingsSection.cs
- Keyboard.cs
- Filter.cs
- AndCondition.cs
- InvokeGenerator.cs
- DataProtection.cs
- KeyInstance.cs
- Decoder.cs