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
- ConnectionConsumerAttribute.cs
- _Win32.cs
- DataReceivedEventArgs.cs
- NamedObject.cs
- StandardBindingImporter.cs
- ProtocolsSection.cs
- EditorAttribute.cs
- ZipIOLocalFileHeader.cs
- FacetEnabledSchemaElement.cs
- GlobalizationSection.cs
- AppLevelCompilationSectionCache.cs
- DefaultEvaluationContext.cs
- EditorPart.cs
- TileBrush.cs
- ProtocolsConfigurationEntry.cs
- PrimitiveSchema.cs
- ListenerBinder.cs
- NotImplementedException.cs
- TextTreeUndoUnit.cs
- SimpleTypeResolver.cs
- AmbientProperties.cs
- XmlQueryType.cs
- CompiledXpathExpr.cs
- Expressions.cs
- OdbcConnectionOpen.cs
- SmtpAuthenticationManager.cs
- COM2PictureConverter.cs
- ParseNumbers.cs
- ExtensionWindowHeader.cs
- RouteUrlExpressionBuilder.cs
- PropertyDescriptorComparer.cs
- ResourceDisplayNameAttribute.cs
- Int64.cs
- PropertyExpression.cs
- TriggerActionCollection.cs
- NavigationCommands.cs
- HttpCapabilitiesEvaluator.cs
- TextModifier.cs
- NotSupportedException.cs
- PopupControlService.cs
- TypeDependencyAttribute.cs
- QilVisitor.cs
- GlyphTypeface.cs
- basenumberconverter.cs
- MetaDataInfo.cs
- CalendarDataBindingHandler.cs
- HtmlSelect.cs
- OleDbTransaction.cs
- FileEnumerator.cs
- ReadOnlyDataSourceView.cs
- GlyphElement.cs
- ResourcePermissionBase.cs
- IApplicationTrustManager.cs
- coordinatorscratchpad.cs
- RegionInfo.cs
- HebrewCalendar.cs
- CursorConverter.cs
- GlyphsSerializer.cs
- TextWriter.cs
- SoapFaultCodes.cs
- FontWeight.cs
- ConfigurationStrings.cs
- CheckBoxFlatAdapter.cs
- DataGridViewBand.cs
- FullTextLine.cs
- TreeNodeEventArgs.cs
- SerializableAttribute.cs
- DataProtection.cs
- XmlRootAttribute.cs
- OdbcConnectionFactory.cs
- CheckBoxRenderer.cs
- FileNotFoundException.cs
- ThrowOnMultipleAssignment.cs
- TextLine.cs
- DesigntimeLicenseContext.cs
- IntSecurity.cs
- ConditionCollection.cs
- DocumentCollection.cs
- PageHandlerFactory.cs
- TogglePattern.cs
- MessagePartDescriptionCollection.cs
- InfoCardKeyedHashAlgorithm.cs
- EdmProviderManifest.cs
- ListControlConvertEventArgs.cs
- Directory.cs
- Int32Converter.cs
- TabControlCancelEvent.cs
- BitmapEffectDrawingContent.cs
- HttpListenerException.cs
- XmlSchemaValidator.cs
- ImageIndexEditor.cs
- DES.cs
- AndCondition.cs
- DataPagerField.cs
- XmlMessageFormatter.cs
- RequestChannel.cs
- XomlCompiler.cs
- IxmlLineInfo.cs
- IsolatedStorageException.cs