Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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
- SpellerHighlightLayer.cs
- EntityModelSchemaGenerator.cs
- DateTimeConstantAttribute.cs
- ProjectionAnalyzer.cs
- WindowsStatusBar.cs
- AuthorizationContext.cs
- PropertyEmitter.cs
- ContentElement.cs
- ClientSponsor.cs
- StandardToolWindows.cs
- EncodingDataItem.cs
- BrowserDefinition.cs
- DataGridCell.cs
- QueryInterceptorAttribute.cs
- OdbcEnvironmentHandle.cs
- SortDescription.cs
- WebRequest.cs
- HtmlInputButton.cs
- EncoderBestFitFallback.cs
- ResourceReferenceExpression.cs
- DuplexClientBase.cs
- DetailsViewPageEventArgs.cs
- DataSourceXmlAttributeAttribute.cs
- ObjectHandle.cs
- NativeMethods.cs
- PerspectiveCamera.cs
- SchemaInfo.cs
- TextDecoration.cs
- SamlSubjectStatement.cs
- RouteValueDictionary.cs
- ResourceReader.cs
- MemoryFailPoint.cs
- DataGridViewElement.cs
- KnownColorTable.cs
- FilterException.cs
- SessionIDManager.cs
- SecurityTimestamp.cs
- SessionStateItemCollection.cs
- SimpleWebHandlerParser.cs
- StrokeIntersection.cs
- StyleModeStack.cs
- HttpContext.cs
- DataTransferEventArgs.cs
- HttpHandlerAction.cs
- ObjectAnimationUsingKeyFrames.cs
- TextComposition.cs
- CompressStream.cs
- DataSetViewSchema.cs
- ToolbarAUtomationPeer.cs
- MultiSelectRootGridEntry.cs
- PersonalizationAdministration.cs
- SiteMapHierarchicalDataSourceView.cs
- WriteFileContext.cs
- CalendarDateRange.cs
- NativeRightsManagementAPIsStructures.cs
- HttpCookie.cs
- CaseInsensitiveHashCodeProvider.cs
- ToolBar.cs
- BindingNavigator.cs
- PropertyFilterAttribute.cs
- ToolStripItemTextRenderEventArgs.cs
- SiteMapNode.cs
- IncrementalCompileAnalyzer.cs
- DataControlFieldTypeEditor.cs
- SafeProcessHandle.cs
- DataGridCell.cs
- AuthenticationService.cs
- odbcmetadatacolumnnames.cs
- SelectionItemPattern.cs
- CodeAssignStatement.cs
- CacheChildrenQuery.cs
- ToolStripControlHost.cs
- NetworkInterface.cs
- COM2ExtendedTypeConverter.cs
- Atom10ItemFormatter.cs
- AppSettingsReader.cs
- PointIndependentAnimationStorage.cs
- OLEDB_Util.cs
- Logging.cs
- MultipartIdentifier.cs
- NetTcpBindingCollectionElement.cs
- FaultCode.cs
- DataGridItemEventArgs.cs
- XMLSyntaxException.cs
- IndexedString.cs
- TemplateKeyConverter.cs
- MDIWindowDialog.cs
- RectAnimationUsingKeyFrames.cs
- XmlCharCheckingWriter.cs
- FlowchartDesignerCommands.cs
- InheritanceContextChangedEventManager.cs
- JsonByteArrayDataContract.cs
- HierarchicalDataBoundControlAdapter.cs
- unsafenativemethodsother.cs
- MessagingDescriptionAttribute.cs
- EdmComplexPropertyAttribute.cs
- NaturalLanguageHyphenator.cs
- XmlSchemaObject.cs
- XmlBoundElement.cs
- RichTextBoxConstants.cs