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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BindStream.cs
- Transform.cs
- Shape.cs
- StaticSiteMapProvider.cs
- CallbackTimeoutsElement.cs
- SrgsDocumentParser.cs
- FileUpload.cs
- PenThread.cs
- XmlToDatasetMap.cs
- EntityCommandCompilationException.cs
- documentsequencetextview.cs
- _SslStream.cs
- OpCopier.cs
- AsymmetricKeyExchangeFormatter.cs
- TypeContext.cs
- TemplateDefinition.cs
- XmlNamespaceMapping.cs
- TextBounds.cs
- StrokeRenderer.cs
- CustomAttribute.cs
- ParameterCollectionEditor.cs
- StaticTextPointer.cs
- SQLStringStorage.cs
- SqlConnectionStringBuilder.cs
- WindowsFormsLinkLabel.cs
- RoutedEventConverter.cs
- FlagsAttribute.cs
- UInt64Storage.cs
- HttpValueCollection.cs
- ThaiBuddhistCalendar.cs
- SQLConvert.cs
- TreeSet.cs
- Operand.cs
- SlipBehavior.cs
- TextEditorParagraphs.cs
- SchemaObjectWriter.cs
- DataSourceConverter.cs
- _NetworkingPerfCounters.cs
- TreeNodeClickEventArgs.cs
- ToolStripDropDownClosedEventArgs.cs
- ArraySortHelper.cs
- DataRelationCollection.cs
- PrintPreviewDialog.cs
- MediaTimeline.cs
- LineBreakRecord.cs
- XmlSignificantWhitespace.cs
- ConfigurationSection.cs
- MatrixAnimationUsingKeyFrames.cs
- ComponentCommands.cs
- UIPermission.cs
- mongolianshape.cs
- ScriptReferenceEventArgs.cs
- SQLSingle.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- DynamicDocumentPaginator.cs
- SessionPageStatePersister.cs
- ContentWrapperAttribute.cs
- DPCustomTypeDescriptor.cs
- BinHexDecoder.cs
- UidManager.cs
- IpcChannel.cs
- PolyLineSegment.cs
- Help.cs
- Rectangle.cs
- HTMLTagNameToTypeMapper.cs
- ContextMenu.cs
- HtmlTableCell.cs
- XmlSerializer.cs
- ClickablePoint.cs
- FileIOPermission.cs
- RawContentTypeMapper.cs
- HttpResponseHeader.cs
- DescendantQuery.cs
- IriParsingElement.cs
- PrtTicket_Editor.cs
- TextOptions.cs
- SmtpNtlmAuthenticationModule.cs
- _SpnDictionary.cs
- FileReservationCollection.cs
- StrongNamePublicKeyBlob.cs
- EnterpriseServicesHelper.cs
- ContentPlaceHolderDesigner.cs
- contentDescriptor.cs
- CheckBoxField.cs
- FixedSOMFixedBlock.cs
- RuntimeArgumentHandle.cs
- RequiredFieldValidator.cs
- BCryptHashAlgorithm.cs
- MatrixUtil.cs
- SafeNativeMethodsCLR.cs
- SmtpCommands.cs
- AsyncOperation.cs
- InheritanceContextChangedEventManager.cs
- Scheduling.cs
- SHA1Managed.cs
- StrokeNode.cs
- DataServiceQueryOfT.cs
- PlatformCulture.cs
- _ScatterGatherBuffers.cs
- xml.cs