Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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
- EventLogPermission.cs
- ClassHandlersStore.cs
- CheckBox.cs
- HostedElements.cs
- TextMarkerSource.cs
- ISFTagAndGuidCache.cs
- CursorConverter.cs
- UriParserTemplates.cs
- DataRecord.cs
- Single.cs
- TextBoxBase.cs
- As.cs
- EmissiveMaterial.cs
- WeakEventManager.cs
- RawStylusInput.cs
- TabControlDesigner.cs
- ValueTypeFixupInfo.cs
- ContentType.cs
- DataGridViewButtonCell.cs
- SQlBooleanStorage.cs
- DesignerDataStoredProcedure.cs
- TreePrinter.cs
- UIAgentAsyncBeginRequest.cs
- IsolatedStorage.cs
- NetPeerTcpBinding.cs
- SerializerProvider.cs
- ResourceSetExpression.cs
- ScriptBehaviorDescriptor.cs
- PaperSource.cs
- ToolStripContentPanel.cs
- Int64Converter.cs
- TypeUtil.cs
- OptimalBreakSession.cs
- xmlfixedPageInfo.cs
- SimpleRecyclingCache.cs
- TextEndOfSegment.cs
- MergeFailedEvent.cs
- MultiByteCodec.cs
- Message.cs
- ConnectivityStatus.cs
- CodeAttributeDeclarationCollection.cs
- ResourceProviderFactory.cs
- InputProcessorProfilesLoader.cs
- TextModifier.cs
- DeadCharTextComposition.cs
- ModuleBuilder.cs
- StoreItemCollection.Loader.cs
- RadioButtonAutomationPeer.cs
- StorageTypeMapping.cs
- ReaderOutput.cs
- ToolStripItemClickedEventArgs.cs
- WebHostUnsafeNativeMethods.cs
- DataPagerCommandEventArgs.cs
- WSSecurityJan2004.cs
- ToolStripDropDownItem.cs
- MetaTable.cs
- WindowsStatusBar.cs
- HttpCacheVary.cs
- PeerObject.cs
- CollectionBuilder.cs
- LocalClientSecuritySettings.cs
- TreeViewBindingsEditorForm.cs
- streamingZipPartStream.cs
- CodeTypeOfExpression.cs
- WebControlAdapter.cs
- Soap.cs
- IndexedGlyphRun.cs
- AssemblyBuilderData.cs
- MessageDroppedTraceRecord.cs
- SoapInteropTypes.cs
- DataControlLinkButton.cs
- SqlParameter.cs
- ApplicationFileParser.cs
- FontInfo.cs
- DetailsViewPagerRow.cs
- TextTreeExtractElementUndoUnit.cs
- HTMLTextWriter.cs
- DependencyPropertyChangedEventArgs.cs
- OraclePermission.cs
- ErrorStyle.cs
- InvalidCommandTreeException.cs
- BuildDependencySet.cs
- QilXmlReader.cs
- DbLambda.cs
- ProcessHostServerConfig.cs
- validation.cs
- RenderOptions.cs
- EntityDataSourceDataSelection.cs
- XmlComplianceUtil.cs
- XamlVector3DCollectionSerializer.cs
- ConnectionOrientedTransportElement.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- XmlSecureResolver.cs
- WhitespaceRule.cs
- coordinatorfactory.cs
- LZCodec.cs
- IgnoreSectionHandler.cs
- DbDataRecord.cs
- TextSpanModifier.cs
- Selection.cs