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
- MatrixStack.cs
- PeerNearMe.cs
- ServiceProviders.cs
- SerialReceived.cs
- Expression.cs
- Schema.cs
- PowerStatus.cs
- DesignerCommandAdapter.cs
- TreeView.cs
- Input.cs
- HttpResponseInternalWrapper.cs
- PropertyTabAttribute.cs
- DomainConstraint.cs
- remotingproxy.cs
- SocketElement.cs
- HttpConfigurationSystem.cs
- LookupBindingPropertiesAttribute.cs
- TextServicesDisplayAttributePropertyRanges.cs
- TableItemStyle.cs
- LineServicesCallbacks.cs
- EntitySet.cs
- WS2007HttpBindingCollectionElement.cs
- SoapTypeAttribute.cs
- TextEditor.cs
- ReadOnlyDictionary.cs
- FaultHandlingFilter.cs
- SqlClientMetaDataCollectionNames.cs
- RestHandler.cs
- UnorderedHashRepartitionStream.cs
- DispatcherObject.cs
- GridErrorDlg.cs
- TextTrailingWordEllipsis.cs
- SqlAggregateChecker.cs
- StyleSheetComponentEditor.cs
- XPathItem.cs
- MouseCaptureWithinProperty.cs
- SemanticBasicElement.cs
- DependencyProperty.cs
- AuthorizationSection.cs
- SmiRequestExecutor.cs
- SchemaImporterExtension.cs
- CellParagraph.cs
- ApplicationTrust.cs
- FtpWebRequest.cs
- FileDetails.cs
- XmlHierarchicalDataSourceView.cs
- SelectionItemProviderWrapper.cs
- SourceElementsCollection.cs
- OrderablePartitioner.cs
- LiteralText.cs
- ExpressionBuilder.cs
- DataView.cs
- ExtendedProtectionPolicyElement.cs
- BindStream.cs
- Select.cs
- TextBox.cs
- TreeNodeBindingDepthConverter.cs
- IncrementalReadDecoders.cs
- TextDecorationLocationValidation.cs
- PropertyDescriptors.cs
- WindowsProgressbar.cs
- ToolboxItemAttribute.cs
- OverflowException.cs
- XmlArrayItemAttribute.cs
- ObjectStateEntryDbDataRecord.cs
- Renderer.cs
- RefreshEventArgs.cs
- WeakReferenceKey.cs
- Profiler.cs
- TextAction.cs
- DragDeltaEventArgs.cs
- Delegate.cs
- MetadataArtifactLoaderFile.cs
- GradientSpreadMethodValidation.cs
- LinqDataSourceContextData.cs
- AliasGenerator.cs
- LambdaCompiler.cs
- DbConnectionClosed.cs
- RuleConditionDialog.cs
- DefaultValueConverter.cs
- MetafileHeaderWmf.cs
- TextRangeEditLists.cs
- RowsCopiedEventArgs.cs
- HtmlShimManager.cs
- Transform3DCollection.cs
- errorpatternmatcher.cs
- TemplatedAdorner.cs
- ToolConsole.cs
- UInt64.cs
- XmlSchemaSimpleContentRestriction.cs
- URLIdentityPermission.cs
- VarRemapper.cs
- StdRegProviderWrapper.cs
- RotationValidation.cs
- Transactions.cs
- xdrvalidator.cs
- GraphicsPathIterator.cs
- ResourceLoader.cs
- SqlRecordBuffer.cs
- StringUtil.cs