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
- DefaultPrintController.cs
- InvalidDataException.cs
- SafeTimerHandle.cs
- CmsInterop.cs
- EventSetter.cs
- WebEventCodes.cs
- TcpProcessProtocolHandler.cs
- FormViewRow.cs
- safesecurityhelperavalon.cs
- XamlClipboardData.cs
- AdPostCacheSubstitution.cs
- ErrorWrapper.cs
- Math.cs
- FlowDocumentView.cs
- ProviderMetadataCachedInformation.cs
- DataMemberFieldConverter.cs
- Helpers.cs
- Events.cs
- CompilerResults.cs
- DBCSCodePageEncoding.cs
- GenericAuthenticationEventArgs.cs
- XsltFunctions.cs
- PriorityQueue.cs
- InlineCollection.cs
- ProfileGroupSettingsCollection.cs
- FixedDocument.cs
- CodeExporter.cs
- TabItem.cs
- ColumnClickEvent.cs
- WebPartUtil.cs
- ServiceDesigner.cs
- CreateInstanceBinder.cs
- Options.cs
- RelatedImageListAttribute.cs
- SQLGuid.cs
- DataContractSet.cs
- TypeSystem.cs
- FileDialog_Vista.cs
- PropertyMap.cs
- DeviceFiltersSection.cs
- XhtmlConformanceSection.cs
- RightNameExpirationInfoPair.cs
- ContextInformation.cs
- FixedSOMSemanticBox.cs
- DbProviderManifest.cs
- SqlVisitor.cs
- EntityDataSourceWrapperCollection.cs
- SQLRoleProvider.cs
- Dynamic.cs
- RowUpdatedEventArgs.cs
- ModelPerspective.cs
- EncodingDataItem.cs
- _SslStream.cs
- ErrorsHelper.cs
- SymbolUsageManager.cs
- DependencyObjectProvider.cs
- ServiceHttpHandlerFactory.cs
- FixedBufferAttribute.cs
- ImageDrawing.cs
- SettingsProperty.cs
- PointConverter.cs
- ControllableStoryboardAction.cs
- ValidatorCompatibilityHelper.cs
- Image.cs
- MatcherBuilder.cs
- Hashtable.cs
- FontResourceCache.cs
- SqlPersonalizationProvider.cs
- DataException.cs
- WorkflowDesigner.cs
- GlyphCache.cs
- SqlServices.cs
- StateBag.cs
- BitmapFrame.cs
- RuleSettingsCollection.cs
- _Connection.cs
- DrawingGroup.cs
- FolderBrowserDialog.cs
- EntityDataSourceWrapperCollection.cs
- Properties.cs
- DataGridViewRowPostPaintEventArgs.cs
- documentsequencetextview.cs
- DataSourceDesigner.cs
- Literal.cs
- ArcSegment.cs
- TextParagraph.cs
- HandlerBase.cs
- WebPartCatalogAddVerb.cs
- TextAction.cs
- SafeUserTokenHandle.cs
- PersonalizableAttribute.cs
- Misc.cs
- ImageFormat.cs
- ExtentCqlBlock.cs
- WindowsPrincipal.cs
- ClrProviderManifest.cs
- RegionData.cs
- RemoteWebConfigurationHostStream.cs
- PasswordRecoveryDesigner.cs
- Mouse.cs