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
- DocumentViewerHelper.cs
- ModelTreeEnumerator.cs
- DbSetClause.cs
- NamespaceQuery.cs
- FamilyTypeface.cs
- DataGridViewColumnStateChangedEventArgs.cs
- ObjectListSelectEventArgs.cs
- SamlEvidence.cs
- TextBlockAutomationPeer.cs
- ToolStripLabel.cs
- ConfigsHelper.cs
- WindowsToolbar.cs
- PropertyEmitterBase.cs
- DataGridViewCellStyleConverter.cs
- ProcessRequestArgs.cs
- SslStream.cs
- ValueCollectionParameterReader.cs
- BufferedStream.cs
- BoolExpr.cs
- SafeProcessHandle.cs
- BamlRecordReader.cs
- OleDbTransaction.cs
- SqlDataAdapter.cs
- DataSvcMapFileSerializer.cs
- XsltException.cs
- DateTimePickerDesigner.cs
- AuthenticodeSignatureInformation.cs
- PiiTraceSource.cs
- MailDefinitionBodyFileNameEditor.cs
- ComponentCommands.cs
- SettingsSection.cs
- DocumentSequenceHighlightLayer.cs
- RawKeyboardInputReport.cs
- odbcmetadatacolumnnames.cs
- XmlSchemaObjectCollection.cs
- InvalidPropValue.cs
- HttpListenerContext.cs
- Grid.cs
- ActivityInstance.cs
- StringStorage.cs
- ExpressionBinding.cs
- DynamicPhysicalDiscoSearcher.cs
- FloaterBaseParagraph.cs
- TypeFieldSchema.cs
- Size3D.cs
- ResponseStream.cs
- LinkArea.cs
- HashHelper.cs
- DetailsViewCommandEventArgs.cs
- NotifyInputEventArgs.cs
- BasePropertyDescriptor.cs
- BooleanExpr.cs
- RowUpdatingEventArgs.cs
- PersonalizableAttribute.cs
- WmlFormAdapter.cs
- BoolExpression.cs
- ListenerElementsCollection.cs
- TextDecorations.cs
- WebPageTraceListener.cs
- CompositeDataBoundControl.cs
- XmlAttributeHolder.cs
- DebugInfoGenerator.cs
- AppSettingsReader.cs
- ProtectedConfigurationSection.cs
- MessageEncoder.cs
- TreeNodeEventArgs.cs
- dsa.cs
- TextChange.cs
- DetailsView.cs
- UInt32Converter.cs
- HttpFormatExtensions.cs
- HttpCookie.cs
- FrameworkElementFactory.cs
- XmlImplementation.cs
- BaseValidator.cs
- TextTreePropertyUndoUnit.cs
- SmiTypedGetterSetter.cs
- GridViewCancelEditEventArgs.cs
- OracleCommandSet.cs
- EventProviderWriter.cs
- TiffBitmapDecoder.cs
- SynchronizationContext.cs
- HandleValueEditor.cs
- PreviewKeyDownEventArgs.cs
- WebFormDesignerActionService.cs
- InputBinding.cs
- SpecularMaterial.cs
- ConnectionManagementElement.cs
- DependencyObjectPropertyDescriptor.cs
- TraceFilter.cs
- XmlAtomicValue.cs
- ProxyManager.cs
- RoutingSection.cs
- ProxyFragment.cs
- XmlILModule.cs
- ComboBoxDesigner.cs
- StdValidatorsAndConverters.cs
- LinkDesigner.cs
- BitVector32.cs
- PropertyManager.cs