Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ // // 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
- DateRangeEvent.cs
- LocalizationComments.cs
- UrlMapping.cs
- UserPreferenceChangedEventArgs.cs
- QuestionEventArgs.cs
- TextTreeRootNode.cs
- ReferenceConverter.cs
- CompilationLock.cs
- LogFlushAsyncResult.cs
- SafeNativeMemoryHandle.cs
- HttpCookiesSection.cs
- SecurityState.cs
- NativeMethodsOther.cs
- TableHeaderCell.cs
- EventProxy.cs
- ProtectedConfigurationSection.cs
- Dynamic.cs
- FontResourceCache.cs
- XmlSchemaInclude.cs
- MobileListItemCollection.cs
- SyntaxCheck.cs
- PrintDialog.cs
- StringExpressionSet.cs
- HwndSourceParameters.cs
- MenuScrollingVisibilityConverter.cs
- _FixedSizeReader.cs
- Journaling.cs
- AspNetSynchronizationContext.cs
- DefaultAsyncDataDispatcher.cs
- SplitterEvent.cs
- EmptyWorkItem.cs
- BlockUIContainer.cs
- TimelineCollection.cs
- CompensationHandlingFilter.cs
- HandledMouseEvent.cs
- InProcStateClientManager.cs
- SimpleMailWebEventProvider.cs
- PageContentAsyncResult.cs
- SoapSchemaMember.cs
- SizeAnimation.cs
- ViewKeyConstraint.cs
- ProtectedConfigurationProviderCollection.cs
- EncoderReplacementFallback.cs
- PersonalizationProviderHelper.cs
- ClientApiGenerator.cs
- FormattedText.cs
- FormCollection.cs
- StyleXamlParser.cs
- BaseParagraph.cs
- SqlUserDefinedAggregateAttribute.cs
- UIElement3DAutomationPeer.cs
- SynchronizationContext.cs
- DesigntimeLicenseContextSerializer.cs
- XsdBuilder.cs
- AppDomain.cs
- InstallerTypeAttribute.cs
- ISAPIWorkerRequest.cs
- SafeNativeMethods.cs
- TrackingSection.cs
- HwndSourceParameters.cs
- ConfigurationValues.cs
- ReflectionHelper.cs
- OracleSqlParser.cs
- SafeThreadHandle.cs
- MenuScrollingVisibilityConverter.cs
- GeometryDrawing.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- QueryableDataSourceHelper.cs
- MsmqIntegrationBinding.cs
- ContainerParaClient.cs
- Table.cs
- ExternalFile.cs
- DiscoveryCallbackBehavior.cs
- HandledEventArgs.cs
- TcpChannelListener.cs
- SecurityDescriptor.cs
- SchemaElementDecl.cs
- CompensatableTransactionScopeActivity.cs
- TextTreeInsertUndoUnit.cs
- IxmlLineInfo.cs
- PersistenceTypeAttribute.cs
- AggregateException.cs
- SignedXmlDebugLog.cs
- AnimatedTypeHelpers.cs
- SettingsContext.cs
- TypeReference.cs
- ChtmlTextWriter.cs
- PersonalizablePropertyEntry.cs
- AppearanceEditorPart.cs
- X509RecipientCertificateServiceElement.cs
- FrameworkContentElement.cs
- InfoCardKeyedHashAlgorithm.cs
- WeakReadOnlyCollection.cs
- TextEndOfLine.cs
- MemberInitExpression.cs
- ConversionContext.cs
- PerformanceCounterPermissionAttribute.cs
- RequiredFieldValidator.cs
- DataFormats.cs
- FixedSOMTableCell.cs