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
- TextTreeFixupNode.cs
- XDeferredAxisSource.cs
- TaiwanLunisolarCalendar.cs
- EmbossBitmapEffect.cs
- RequestCacheValidator.cs
- XmlTypeMapping.cs
- CorrelationManager.cs
- DataServiceResponse.cs
- Perspective.cs
- SqlPersonalizationProvider.cs
- TextWriterTraceListener.cs
- UrlAuthorizationModule.cs
- SharedPerformanceCounter.cs
- BuilderInfo.cs
- StorageSetMapping.cs
- SimpleFileLog.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- DataPagerFieldItem.cs
- ReachPageContentSerializer.cs
- MarshalByRefObject.cs
- MediaTimeline.cs
- TaskResultSetter.cs
- FileAccessException.cs
- TypeConvertions.cs
- Pair.cs
- Int32Collection.cs
- FixedSOMPage.cs
- XmlException.cs
- SystemIPGlobalProperties.cs
- ClientUtils.cs
- JsonReader.cs
- UnicodeEncoding.cs
- PropertyPathWorker.cs
- InstanceValue.cs
- MailMessage.cs
- AggregateNode.cs
- TextClipboardData.cs
- DetailsViewModeEventArgs.cs
- StackSpiller.Bindings.cs
- WebSysDescriptionAttribute.cs
- DesignerObjectListAdapter.cs
- CodeTypeParameter.cs
- WebPartVerb.cs
- PropertyNames.cs
- Executor.cs
- UpdatePanelTriggerCollection.cs
- ObjectView.cs
- ImmComposition.cs
- NeutralResourcesLanguageAttribute.cs
- ELinqQueryState.cs
- BamlBinaryWriter.cs
- DataGridViewToolTip.cs
- WCFServiceClientProxyGenerator.cs
- ImportContext.cs
- AttributeUsageAttribute.cs
- EventLogPermissionEntry.cs
- mediaeventshelper.cs
- HttpAsyncResult.cs
- ValidationErrorCollection.cs
- XmlSchemaSimpleContentRestriction.cs
- MimeObjectFactory.cs
- ContainerControl.cs
- NamedElement.cs
- ProvidePropertyAttribute.cs
- WebPartAddingEventArgs.cs
- Atom10FormatterFactory.cs
- XmlSchemaGroup.cs
- wgx_sdk_version.cs
- DES.cs
- ACE.cs
- ProgressBarRenderer.cs
- MergePropertyDescriptor.cs
- GenericPrincipal.cs
- ReachSerializer.cs
- ClassicBorderDecorator.cs
- DataGridComponentEditor.cs
- XmlIterators.cs
- UnaryNode.cs
- StrongNameHelpers.cs
- XamlSerializationHelper.cs
- MemberAssignment.cs
- FixedDocumentSequencePaginator.cs
- Message.cs
- Lookup.cs
- RoutedEventValueSerializer.cs
- ListParagraph.cs
- SpellerHighlightLayer.cs
- CompositeDataBoundControl.cs
- MemoryPressure.cs
- Utilities.cs
- InputLanguageEventArgs.cs
- TextureBrush.cs
- TreeNodeBinding.cs
- HwndAppCommandInputProvider.cs
- ListSourceHelper.cs
- RijndaelManagedTransform.cs
- PaginationProgressEventArgs.cs
- Registry.cs
- SectionInformation.cs
- RuleSettingsCollection.cs