Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- InlineCollection.cs
- SafeThemeHandle.cs
- DataGridViewCellCancelEventArgs.cs
- ImageMap.cs
- TraceHandler.cs
- Triplet.cs
- ModuleConfigurationInfo.cs
- ModuleConfigurationInfo.cs
- DoubleAnimationUsingKeyFrames.cs
- ArrayExtension.cs
- SQLByte.cs
- UdpContractFilterBehavior.cs
- ReachDocumentReferenceCollectionSerializerAsync.cs
- CodeAttributeDeclarationCollection.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- XmlQueryStaticData.cs
- MinMaxParagraphWidth.cs
- ExtensionElementCollection.cs
- Misc.cs
- WebPartTransformerCollection.cs
- SoapWriter.cs
- ProgressBar.cs
- DescendantQuery.cs
- NodeInfo.cs
- ComponentCache.cs
- OdbcConnectionString.cs
- HitTestParameters.cs
- TextTreePropertyUndoUnit.cs
- DbQueryCommandTree.cs
- EntitySqlQueryBuilder.cs
- SplineKeyFrames.cs
- XmlSchemaComplexContent.cs
- HwndSourceKeyboardInputSite.cs
- CodeGotoStatement.cs
- PropertyCondition.cs
- Identity.cs
- MobileContainerDesigner.cs
- HtmlButton.cs
- CroppedBitmap.cs
- SrgsElementFactoryCompiler.cs
- AdornerLayer.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- BindingListCollectionView.cs
- xml.cs
- ServiceProviders.cs
- BrowserTree.cs
- WindowClosedEventArgs.cs
- Panel.cs
- TypeSystemProvider.cs
- IndependentAnimationStorage.cs
- MarkupWriter.cs
- SimpleTextLine.cs
- StateRuntime.cs
- DataObjectAttribute.cs
- HttpStreamFormatter.cs
- Crypto.cs
- IntSecurity.cs
- XsdBuildProvider.cs
- DependencyPropertyConverter.cs
- RelationshipManager.cs
- XmlCharacterData.cs
- SchemaTableOptionalColumn.cs
- Assert.cs
- _SSPISessionCache.cs
- FormViewRow.cs
- TimeManager.cs
- DataContractJsonSerializer.cs
- Span.cs
- FederatedMessageSecurityOverHttpElement.cs
- SQLBytesStorage.cs
- AsyncResult.cs
- SqlPersistenceProviderFactory.cs
- Int32Collection.cs
- ParserOptions.cs
- ProfileService.cs
- UpdateTracker.cs
- HashAlgorithm.cs
- EventMappingSettingsCollection.cs
- WindowsTitleBar.cs
- CheckBoxStandardAdapter.cs
- DataTablePropertyDescriptor.cs
- ProxyHwnd.cs
- WhitespaceRule.cs
- ComboBoxRenderer.cs
- odbcmetadatacollectionnames.cs
- DataGridViewRowsAddedEventArgs.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- SamlEvidence.cs
- Size.cs
- DLinqDataModelProvider.cs
- TextRange.cs
- Opcode.cs
- OdbcEnvironment.cs
- DesignerHost.cs
- oledbmetadatacollectionnames.cs
- ScaleTransform.cs
- HtmlAnchor.cs
- HttpResponseHeader.cs
- AnnotationComponentChooser.cs
- controlskin.cs