Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- HtmlProps.cs
- ProjectionRewriter.cs
- DomainUpDown.cs
- _SpnDictionary.cs
- MetadataHelper.cs
- CommonProperties.cs
- HostingEnvironmentException.cs
- ServiceContractDetailViewControl.cs
- SystemIPInterfaceProperties.cs
- ClientUtils.cs
- MergeEnumerator.cs
- SpeechSynthesizer.cs
- ProviderSettingsCollection.cs
- SubpageParagraph.cs
- TextFragmentEngine.cs
- Italic.cs
- GridItemPatternIdentifiers.cs
- UITypeEditor.cs
- SqlUtil.cs
- DataDocumentXPathNavigator.cs
- PropertyGrid.cs
- PopOutPanel.cs
- CFGGrammar.cs
- DataGridColumnEventArgs.cs
- FeatureManager.cs
- AsnEncodedData.cs
- ScriptReferenceBase.cs
- PageThemeCodeDomTreeGenerator.cs
- SamlAudienceRestrictionCondition.cs
- FormatterServices.cs
- EndpointAddressProcessor.cs
- LabelEditEvent.cs
- RunWorkerCompletedEventArgs.cs
- XmlHierarchicalDataSourceView.cs
- OrderedDictionaryStateHelper.cs
- Vars.cs
- CustomAttributeSerializer.cs
- XmlSchemaSimpleContentExtension.cs
- PageCodeDomTreeGenerator.cs
- RegexWriter.cs
- InternalControlCollection.cs
- CqlWriter.cs
- SHA1Managed.cs
- LambdaCompiler.Statements.cs
- Debugger.cs
- ListViewGroup.cs
- ProgressiveCrcCalculatingStream.cs
- NativeObjectSecurity.cs
- Type.cs
- HttpHandlerAction.cs
- SiteMapDataSourceView.cs
- XmlStreamNodeWriter.cs
- rsa.cs
- ByteStack.cs
- MetadataCache.cs
- Dictionary.cs
- DataSourceXmlAttributeAttribute.cs
- RSAPKCS1SignatureFormatter.cs
- LabelInfo.cs
- RotateTransform3D.cs
- ContentPropertyAttribute.cs
- ScrollChrome.cs
- VirtualizedItemPattern.cs
- HttpWriter.cs
- RequiredAttributeAttribute.cs
- AttachInfo.cs
- ItemList.cs
- IsolatedStorageFileStream.cs
- ProbeMatchesApril2005.cs
- SimplePropertyEntry.cs
- ConfigXmlComment.cs
- XmlUnspecifiedAttribute.cs
- ControlDesignerState.cs
- DataGridItemEventArgs.cs
- QuestionEventArgs.cs
- InstanceCompleteException.cs
- PartialArray.cs
- TreeNodeCollectionEditor.cs
- XmlILConstructAnalyzer.cs
- HashMembershipCondition.cs
- BitmapEditor.cs
- InlinedAggregationOperatorEnumerator.cs
- CalendarDay.cs
- ServiceMoniker.cs
- Rijndael.cs
- HttpChannelListener.cs
- Debug.cs
- ItemCheckedEvent.cs
- CacheHelper.cs
- TextProperties.cs
- DataServiceHost.cs
- CompositeDataBoundControl.cs
- M3DUtil.cs
- DLinqTableProvider.cs
- XPathChildIterator.cs
- StsCommunicationException.cs
- DataGridViewDataConnection.cs
- DeviceOverridableAttribute.cs
- Exception.cs
- SizeChangedEventArgs.cs