Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MimeObjectFactory.cs
- _LocalDataStore.cs
- DrawingCollection.cs
- CircleHotSpot.cs
- GcSettings.cs
- ApplicationCommands.cs
- OleAutBinder.cs
- BaseResourcesBuildProvider.cs
- ImageCodecInfoPrivate.cs
- Point.cs
- _RequestCacheProtocol.cs
- IdnElement.cs
- FlowNode.cs
- Comparer.cs
- HashAlgorithm.cs
- ObjectCloneHelper.cs
- FloatUtil.cs
- SoundPlayer.cs
- AsymmetricCryptoHandle.cs
- EditorAttribute.cs
- NotifyInputEventArgs.cs
- SrgsSemanticInterpretationTag.cs
- HandleExceptionArgs.cs
- XPathNavigatorKeyComparer.cs
- ChtmlPageAdapter.cs
- ServerValidateEventArgs.cs
- DbConnectionStringBuilder.cs
- QueryConverter.cs
- SettingsProviderCollection.cs
- ConsoleEntryPoint.cs
- TypographyProperties.cs
- PropertyEntry.cs
- ObjectView.cs
- ThreadAbortException.cs
- DynamicResourceExtensionConverter.cs
- X509CertificateCollection.cs
- ToolStripDropDownItem.cs
- DeviceContext.cs
- FontStretch.cs
- EtwTrace.cs
- DataRelationCollection.cs
- HwndSubclass.cs
- SerializableTypeCodeDomSerializer.cs
- WithParamAction.cs
- FloaterBaseParagraph.cs
- DataSetUtil.cs
- BufferBuilder.cs
- Span.cs
- ColorAnimationUsingKeyFrames.cs
- PerformanceCounterManager.cs
- PersonalizationProviderCollection.cs
- PagedDataSource.cs
- DataBoundLiteralControl.cs
- StrokeRenderer.cs
- CurrentChangingEventArgs.cs
- PathNode.cs
- DataGridViewCellFormattingEventArgs.cs
- PointLight.cs
- ConstructorNeedsTagAttribute.cs
- DecoderBestFitFallback.cs
- Pair.cs
- WorkflowServiceHost.cs
- QueryableDataSourceHelper.cs
- DecimalKeyFrameCollection.cs
- BindingCollection.cs
- ControlPaint.cs
- CombinedGeometry.cs
- OptimalTextSource.cs
- DurableErrorHandler.cs
- XmlName.cs
- Pkcs7Signer.cs
- PositiveTimeSpanValidatorAttribute.cs
- DataGridViewRowsRemovedEventArgs.cs
- ChangeBlockUndoRecord.cs
- DataListItem.cs
- DesignerActionUI.cs
- PermissionSetTriple.cs
- ChooseAction.cs
- OdbcException.cs
- CompilationUnit.cs
- HttpRawResponse.cs
- DataGridViewEditingControlShowingEventArgs.cs
- MultiTouchSystemGestureLogic.cs
- WebHttpSecurityElement.cs
- Timeline.cs
- ComAdminWrapper.cs
- AppSettings.cs
- WebAdminConfigurationHelper.cs
- ByteKeyFrameCollection.cs
- BatchServiceHost.cs
- GeneralTransformGroup.cs
- ConstructorBuilder.cs
- DataRecordInfo.cs
- XmlBaseReader.cs
- SocketManager.cs
- WebResourceAttribute.cs
- Vector3D.cs
- ValueTypeFixupInfo.cs
- NameValuePermission.cs
- _ListenerResponseStream.cs