Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- UInt64.cs
- EventMappingSettingsCollection.cs
- SelectionHighlightInfo.cs
- Misc.cs
- CompoundFileDeflateTransform.cs
- AutoResetEvent.cs
- SimpleHandlerFactory.cs
- ExpressionLexer.cs
- CSharpCodeProvider.cs
- KeyManager.cs
- WinInet.cs
- DbParameterHelper.cs
- TransactionFlowElement.cs
- FieldBuilder.cs
- GlyphShapingProperties.cs
- Vector3DKeyFrameCollection.cs
- ConfigurationPropertyCollection.cs
- VirtualPath.cs
- OdbcParameter.cs
- IIS7WorkerRequest.cs
- XmlSchemaObjectCollection.cs
- MemberAssignmentAnalysis.cs
- AssemblyBuilder.cs
- BaseParagraph.cs
- NGCSerializerAsync.cs
- TheQuery.cs
- SQLChars.cs
- BamlTreeNode.cs
- UnsafeMethods.cs
- MessageDecoder.cs
- _LazyAsyncResult.cs
- ResetableIterator.cs
- TrustSection.cs
- DataControlImageButton.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- FixedTextPointer.cs
- CommandPlan.cs
- WebPartConnectVerb.cs
- Filter.cs
- TextTreeInsertElementUndoUnit.cs
- PropertyItem.cs
- ContextMenu.cs
- GeometryCombineModeValidation.cs
- PublisherIdentityPermission.cs
- TdsParserStaticMethods.cs
- EntityParameter.cs
- QueuePathDialog.cs
- Point.cs
- DocumentXPathNavigator.cs
- InstalledVoice.cs
- ButtonAutomationPeer.cs
- ModifierKeysValueSerializer.cs
- XmlDataSource.cs
- Block.cs
- HtmlInputFile.cs
- DataGridViewCellPaintingEventArgs.cs
- ConditionalDesigner.cs
- XmlSchemaSimpleTypeRestriction.cs
- AuthenticationService.cs
- HwndProxyElementProvider.cs
- MultilineStringConverter.cs
- WebContext.cs
- XmlIlTypeHelper.cs
- ConstraintCollection.cs
- FormViewRow.cs
- SqlVersion.cs
- ApplicationHost.cs
- ButtonChrome.cs
- SQLGuid.cs
- PageParser.cs
- TypeTypeConverter.cs
- MetadataPropertyCollection.cs
- ZipPackagePart.cs
- PersonalizationProviderCollection.cs
- CompoundFileDeflateTransform.cs
- CollaborationHelperFunctions.cs
- StylusPointProperty.cs
- BitmapInitialize.cs
- OleDbRowUpdatingEvent.cs
- TemplateBuilder.cs
- NavigatorInvalidBodyAccessException.cs
- PropertyPushdownHelper.cs
- CompositeControlDesigner.cs
- Selector.cs
- HTTPRemotingHandler.cs
- DocumentXPathNavigator.cs
- Renderer.cs
- BooleanFunctions.cs
- CryptoApi.cs
- ObjectListShowCommandsEventArgs.cs
- _TLSstream.cs
- ExpressionPrinter.cs
- InnerItemCollectionView.cs
- BitmapMetadataEnumerator.cs
- PolyBezierSegment.cs
- PolicyStatement.cs
- SiteMapNode.cs
- AppDomainManager.cs
- PlainXmlDeserializer.cs
- ExtenderProvidedPropertyAttribute.cs