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
- SerializationBinder.cs
- RegexCompilationInfo.cs
- PageOrientation.cs
- TextEditorMouse.cs
- CfgParser.cs
- TextTrailingWordEllipsis.cs
- DBSqlParserTable.cs
- MLangCodePageEncoding.cs
- ReaderContextStackData.cs
- MessageEncoder.cs
- XPathAxisIterator.cs
- TextSerializer.cs
- ElementsClipboardData.cs
- CompiledRegexRunnerFactory.cs
- BufferedReadStream.cs
- SpellerError.cs
- DbConnectionPoolOptions.cs
- PerformanceCounterPermissionEntry.cs
- SuppressIldasmAttribute.cs
- TableStyle.cs
- Rule.cs
- CodeNamespaceImportCollection.cs
- FormsAuthentication.cs
- HeaderCollection.cs
- AttachmentCollection.cs
- XmlSchemaCollection.cs
- PersonalizationProvider.cs
- ResXFileRef.cs
- SpecularMaterial.cs
- DataPager.cs
- FamilyTypeface.cs
- FrameAutomationPeer.cs
- EqualityComparer.cs
- SignerInfo.cs
- MetadataItemCollectionFactory.cs
- SignatureResourcePool.cs
- SqlCharStream.cs
- MsmqIntegrationSecurityElement.cs
- SafeRightsManagementSessionHandle.cs
- ConnectionsZoneDesigner.cs
- XmlReaderSettings.cs
- XsdDateTime.cs
- WebConfigurationHostFileChange.cs
- OrCondition.cs
- DetailsViewPageEventArgs.cs
- Parameter.cs
- PropertyCondition.cs
- NameValuePermission.cs
- FrameworkElement.cs
- Byte.cs
- Help.cs
- SessionEndingEventArgs.cs
- ContextMenuAutomationPeer.cs
- ItemList.cs
- MsmqIntegrationOutputChannel.cs
- _AuthenticationState.cs
- GridItemPattern.cs
- DefaultValidator.cs
- Matrix.cs
- ControlTemplate.cs
- QueryExpression.cs
- _NTAuthentication.cs
- PreviewPrintController.cs
- RowToParametersTransformer.cs
- SizeAnimationClockResource.cs
- _DisconnectOverlappedAsyncResult.cs
- HScrollProperties.cs
- BindingExpressionUncommonField.cs
- ObjectDataSourceSelectingEventArgs.cs
- TemplateApplicationHelper.cs
- ExpandableObjectConverter.cs
- StackBuilderSink.cs
- DesignSurfaceEvent.cs
- SchemaElementLookUpTable.cs
- WSFederationHttpBindingCollectionElement.cs
- UserControlFileEditor.cs
- DiscoveryDocumentSearchPattern.cs
- VideoDrawing.cs
- Form.cs
- Process.cs
- StreamBodyWriter.cs
- FileLoadException.cs
- BufferModeSettings.cs
- DataGridViewCellCollection.cs
- ReflectionHelper.cs
- DBBindings.cs
- ErrorWrapper.cs
- InfoCardProofToken.cs
- GlobalAllocSafeHandle.cs
- GPRECTF.cs
- RequestCachePolicy.cs
- WindowsListViewGroupHelper.cs
- InvalidAsynchronousStateException.cs
- RetrieveVirtualItemEventArgs.cs
- PriorityChain.cs
- OutputScopeManager.cs
- InkCanvasSelection.cs
- OLEDB_Enum.cs
- RequiredAttributeAttribute.cs
- Compensate.cs