Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / XmlUtils / System / Xml / Xsl / XsltOld / TemplateBaseAction.cs / 1305376 / TemplateBaseAction.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml.Xsl.XsltOld { using Res = System.Xml.Utils.Res; using System; using System.Diagnostics; using System.Collections; using System.Xml; using System.Xml.XPath; using System.Globalization; // RootAction and TemplateActions have a litle in common -- they are responsible for variable allocation // TemplateBaseAction -- implenemts this shared behavior internal abstract class TemplateBaseAction : ContainerAction { protected int variableCount; // space to allocate on frame for variables private int variableFreeSlot; // compile time counter responsiable for variable placement logic public int AllocateVariableSlot() { // Variable placement logic. Optimized int thisSlot = this.variableFreeSlot; this.variableFreeSlot ++; if(this.variableCount < this.variableFreeSlot) { this.variableCount = this.variableFreeSlot; } return thisSlot; } public void ReleaseVariableSlots(int n) { // This code does optimisation of variable placement. Comented out for this version // Reuse of the variable disable the check that variable was assigned before the actual use // this check has to be done in compile time n future. // this.variableFreeSlot -= n; } } } // 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
- SecurityUtils.cs
- AuthorizationSection.cs
- TemplateControl.cs
- GetPageCompletedEventArgs.cs
- ImpersonateTokenRef.cs
- PageCatalogPart.cs
- WindowsScroll.cs
- OutputCacheSection.cs
- NonVisualControlAttribute.cs
- MinMaxParagraphWidth.cs
- PipelineModuleStepContainer.cs
- DbProviderFactories.cs
- DropShadowEffect.cs
- SystemUnicastIPAddressInformation.cs
- DependencyPropertyConverter.cs
- EditorPartCollection.cs
- IProvider.cs
- CurrentChangingEventArgs.cs
- TypeDescriptionProviderAttribute.cs
- KeyInterop.cs
- BooleanFacetDescriptionElement.cs
- DirectoryObjectSecurity.cs
- DynamicExpression.cs
- SchemaImporterExtension.cs
- SubMenuStyleCollection.cs
- ClientUtils.cs
- StylusDevice.cs
- BooleanConverter.cs
- FlowPosition.cs
- HttpResponseInternalBase.cs
- IIS7UserPrincipal.cs
- RegisteredScript.cs
- SimpleRecyclingCache.cs
- RoleManagerSection.cs
- TypeExtensions.cs
- FontCollection.cs
- DateTimeSerializationSection.cs
- UICuesEvent.cs
- TrackBarRenderer.cs
- VirtualizedContainerService.cs
- UInt32.cs
- CacheSection.cs
- WindowsListView.cs
- URIFormatException.cs
- _emptywebproxy.cs
- ToolStripDropDownMenu.cs
- GroupQuery.cs
- DurableInstanceProvider.cs
- ConfigXmlCDataSection.cs
- externdll.cs
- RootAction.cs
- Item.cs
- BookmarkScopeHandle.cs
- XamlSerializationHelper.cs
- WebBrowser.cs
- PermissionAttributes.cs
- Point4DValueSerializer.cs
- __Filters.cs
- Color.cs
- UnsafeNativeMethodsPenimc.cs
- PieceDirectory.cs
- SaveFileDialog.cs
- ProvidersHelper.cs
- InputScopeAttribute.cs
- TransactionCache.cs
- HeaderedContentControl.cs
- FixUp.cs
- ScrollContentPresenter.cs
- TypeTypeConverter.cs
- ValueConversionAttribute.cs
- OdbcReferenceCollection.cs
- TablePatternIdentifiers.cs
- DataErrorValidationRule.cs
- StoreContentChangedEventArgs.cs
- UIElementParagraph.cs
- PropertyConverter.cs
- MultiByteCodec.cs
- _ConnectOverlappedAsyncResult.cs
- EntityContainerEmitter.cs
- TypeLoader.cs
- UTF8Encoding.cs
- CompilationLock.cs
- WebPartDescriptionCollection.cs
- NonSerializedAttribute.cs
- SwitchAttribute.cs
- FileChangesMonitor.cs
- ObjectDisposedException.cs
- SafeCloseHandleCritical.cs
- StructuredTypeEmitter.cs
- CopyCodeAction.cs
- HuffModule.cs
- FixedDocumentSequencePaginator.cs
- ValueType.cs
- Debug.cs
- CodeGroup.cs
- ResizeBehavior.cs
- TextDecorationLocationValidation.cs
- SelectedCellsChangedEventArgs.cs
- TaiwanLunisolarCalendar.cs
- ChtmlMobileTextWriter.cs