Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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. // //[....] //----------------------------------------------------------------------------- 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
- ControlIdConverter.cs
- UsernameTokenFactoryCredential.cs
- URLIdentityPermission.cs
- DockPatternIdentifiers.cs
- CryptoApi.cs
- Triplet.cs
- BufferedOutputAsyncStream.cs
- XmlSchemaImporter.cs
- NativeBuffer.cs
- PerfService.cs
- XmlMemberMapping.cs
- RadialGradientBrush.cs
- TraceSwitch.cs
- DecoratedNameAttribute.cs
- SmtpReplyReader.cs
- LongTypeConverter.cs
- TableSectionStyle.cs
- TabPage.cs
- Rijndael.cs
- PagePropertiesChangingEventArgs.cs
- Pair.cs
- ActivityCollectionMarkupSerializer.cs
- ValidatingCollection.cs
- Options.cs
- DataGridTablesFactory.cs
- HttpWebResponse.cs
- AspNetHostingPermission.cs
- DragEventArgs.cs
- LookupNode.cs
- OraclePermissionAttribute.cs
- OleStrCAMarshaler.cs
- FlowPosition.cs
- autovalidator.cs
- RTLAwareMessageBox.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- FontFamily.cs
- FontUnit.cs
- WebExceptionStatus.cs
- _FixedSizeReader.cs
- SynchronizationContext.cs
- EpmSyndicationContentSerializer.cs
- CreatingCookieEventArgs.cs
- UserCancellationException.cs
- ProfilePropertySettings.cs
- CatalogPartCollection.cs
- LocatorGroup.cs
- PageBreakRecord.cs
- SchemaAttDef.cs
- ReferenceSchema.cs
- SessionPageStatePersister.cs
- Monitor.cs
- DBBindings.cs
- UpDownEvent.cs
- LoginName.cs
- BitArray.cs
- EncoderParameter.cs
- DatagridviewDisplayedBandsData.cs
- WebPartActionVerb.cs
- GeometryHitTestResult.cs
- ParsedAttributeCollection.cs
- StringOutput.cs
- SkewTransform.cs
- PaintValueEventArgs.cs
- ProviderUtil.cs
- NodeLabelEditEvent.cs
- LinkArea.cs
- MediaContextNotificationWindow.cs
- Dispatcher.cs
- XmlTextReaderImplHelpers.cs
- SubtreeProcessor.cs
- ZipIOBlockManager.cs
- XmlSerializer.cs
- SharedDp.cs
- FaultPropagationRecord.cs
- XmlDocumentFieldSchema.cs
- DataListCommandEventArgs.cs
- ExtensionDataReader.cs
- TimerExtension.cs
- KeyNotFoundException.cs
- HttpHandlerActionCollection.cs
- Filter.cs
- HtmlTextArea.cs
- ExtendedProtectionPolicy.cs
- RectangleGeometry.cs
- Assembly.cs
- GroupDescription.cs
- ThrowHelper.cs
- GenericUI.cs
- TextTreeUndoUnit.cs
- HttpResponseInternalWrapper.cs
- WebBrowserUriTypeConverter.cs
- MediaScriptCommandRoutedEventArgs.cs
- IdentityNotMappedException.cs
- AssemblyCache.cs
- FileVersionInfo.cs
- XmlSchemaException.cs
- Utils.cs
- LogRestartAreaEnumerator.cs
- ContextStack.cs
- Subtree.cs