Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / XPath / Internal / ClonableStack.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BitmapEffectInputData.cs
- MDIClient.cs
- RenderingBiasValidation.cs
- ArgumentNullException.cs
- DragDeltaEventArgs.cs
- RelationshipConverter.cs
- Hex.cs
- ColumnWidthChangedEvent.cs
- WebRequestModulesSection.cs
- CompilerGeneratedAttribute.cs
- LocatorPart.cs
- Typography.cs
- AutomationPattern.cs
- DES.cs
- PropertyItem.cs
- InstallerTypeAttribute.cs
- ArithmeticException.cs
- FormClosingEvent.cs
- ListViewInsertionMark.cs
- HtmlDocument.cs
- BuildResultCache.cs
- AttributeEmitter.cs
- XmlDictionaryReader.cs
- HitTestWithGeometryDrawingContextWalker.cs
- InstanceDescriptor.cs
- InvokeHandlers.cs
- ItemCheckedEvent.cs
- ToolboxItemFilterAttribute.cs
- XhtmlConformanceSection.cs
- ComplexTypeEmitter.cs
- ExpressionConverter.cs
- ILGenerator.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- HttpProfileBase.cs
- PersistenceProviderDirectory.cs
- HelpKeywordAttribute.cs
- FrameworkContextData.cs
- ComplexLine.cs
- ToolBar.cs
- ReflectionUtil.cs
- LongSumAggregationOperator.cs
- BindingSource.cs
- PerformanceCounterPermission.cs
- DeferredSelectedIndexReference.cs
- TransformGroup.cs
- RewritingProcessor.cs
- StatusBarItemAutomationPeer.cs
- BoundPropertyEntry.cs
- ObjectItemLoadingSessionData.cs
- FileLogRecordHeader.cs
- ConfigurationStrings.cs
- xml.cs
- CounterSet.cs
- MetaType.cs
- XmlCharType.cs
- AutomationPattern.cs
- Trigger.cs
- Variant.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- WmlPageAdapter.cs
- XmlParserContext.cs
- MenuItemAutomationPeer.cs
- Filter.cs
- ObfuscateAssemblyAttribute.cs
- AutoSizeComboBox.cs
- ConnectionsZoneDesigner.cs
- Table.cs
- FrameDimension.cs
- TextPointer.cs
- ThreadAbortException.cs
- ControlBuilder.cs
- DodSequenceMerge.cs
- ValueProviderWrapper.cs
- AbstractExpressions.cs
- AssertUtility.cs
- DataGridToolTip.cs
- EntitySetBaseCollection.cs
- ReachUIElementCollectionSerializerAsync.cs
- VisualTreeHelper.cs
- AttributeData.cs
- DependentList.cs
- XPathSingletonIterator.cs
- SettingsAttributes.cs
- SystemFonts.cs
- TemplateBamlRecordReader.cs
- ContentElement.cs
- ReachObjectContext.cs
- ColorContext.cs
- FixedPageProcessor.cs
- UIElement3D.cs
- ServiceAuthorizationBehavior.cs
- XPathSingletonIterator.cs
- AuthorizationRule.cs
- TemplateXamlTreeBuilder.cs
- PixelShader.cs
- ConfigurationErrorsException.cs
- PerspectiveCamera.cs
- DecimalAnimationUsingKeyFrames.cs
- XmlComment.cs
- RemotingConfiguration.cs