Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / XPath / Internal / ClonableStack.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CodeObject.cs
- EditorZone.cs
- ModelTreeEnumerator.cs
- ClipboardProcessor.cs
- UnsafeNativeMethodsMilCoreApi.cs
- UrlMappingsModule.cs
- HostingEnvironment.cs
- DateRangeEvent.cs
- PathParser.cs
- MemoryPressure.cs
- EventLogPropertySelector.cs
- XamlParser.cs
- EntityClassGenerator.cs
- IArgumentProvider.cs
- WeakReferenceList.cs
- ISAPIApplicationHost.cs
- CodeCompileUnit.cs
- TrackBar.cs
- UiaCoreApi.cs
- CalendarDataBindingHandler.cs
- OdbcException.cs
- LocatorPart.cs
- Trace.cs
- StringCollection.cs
- EventMemberCodeDomSerializer.cs
- ListItemConverter.cs
- XmlILStorageConverter.cs
- MasterPageParser.cs
- XPathDocumentIterator.cs
- RadioButtonStandardAdapter.cs
- HttpProtocolReflector.cs
- PerformanceCounterPermissionEntry.cs
- MetadataItem_Static.cs
- SplitterEvent.cs
- Multiply.cs
- GenerateHelper.cs
- XmlAnyElementAttribute.cs
- TextTreeInsertElementUndoUnit.cs
- ReadOnlyPropertyMetadata.cs
- WebPartVerb.cs
- CallbackValidator.cs
- IgnoreFlushAndCloseStream.cs
- SqlResolver.cs
- ClientSideProviderDescription.cs
- Group.cs
- EntityWithKeyStrategy.cs
- HttpCacheParams.cs
- MonikerSyntaxException.cs
- Paragraph.cs
- TextServicesDisplayAttribute.cs
- GridViewSelectEventArgs.cs
- MetadataItemCollectionFactory.cs
- CommonObjectSecurity.cs
- OleDbErrorCollection.cs
- Int64Converter.cs
- SqlError.cs
- Operand.cs
- SettingsBase.cs
- ReflectTypeDescriptionProvider.cs
- CertificateManager.cs
- ParseHttpDate.cs
- OneToOneMappingSerializer.cs
- ProtocolReflector.cs
- SystemNetworkInterface.cs
- FunctionGenerator.cs
- TransformProviderWrapper.cs
- ResizeGrip.cs
- TemplateKey.cs
- SqlTrackingQuery.cs
- Zone.cs
- PlatformCulture.cs
- BitmapImage.cs
- ProtocolsSection.cs
- TextServicesDisplayAttributePropertyRanges.cs
- DesignerAttribute.cs
- NativeMethods.cs
- DateTimeFormatInfoScanner.cs
- ServiceModelReg.cs
- ObjectDataSourceView.cs
- GridItemPattern.cs
- EntityDataSourceReferenceGroup.cs
- CollaborationHelperFunctions.cs
- KeyInterop.cs
- TextModifier.cs
- QilTernary.cs
- InteropEnvironment.cs
- XamlFigureLengthSerializer.cs
- SerializationAttributes.cs
- AutomationPatternInfo.cs
- Menu.cs
- DynamicRendererThreadManager.cs
- SR.Designer.cs
- ScrollableControlDesigner.cs
- ValueQuery.cs
- NamespaceDecl.cs
- SerializerWriterEventHandlers.cs
- XmlBaseReader.cs
- QueryCursorEventArgs.cs
- DesignBindingEditor.cs
- PolicyException.cs