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
- Sql8ConformanceChecker.cs
- HttpAsyncResult.cs
- Decorator.cs
- WindowsGraphicsWrapper.cs
- Schema.cs
- ServiceModelStringsVersion1.cs
- LineInfo.cs
- AddDataControlFieldDialog.cs
- WebConfigurationFileMap.cs
- LassoSelectionBehavior.cs
- cryptoapiTransform.cs
- CommentEmitter.cs
- MaskDesignerDialog.cs
- DeferredElementTreeState.cs
- TreePrinter.cs
- ActiveXHelper.cs
- SpecialFolderEnumConverter.cs
- TextMarkerSource.cs
- BindingExpression.cs
- NumberFormatter.cs
- RemotingServices.cs
- StrongNameMembershipCondition.cs
- InlineUIContainer.cs
- InvokeHandlers.cs
- RowBinding.cs
- FileIOPermission.cs
- CollectionBuilder.cs
- ObjectQueryState.cs
- TripleDESCryptoServiceProvider.cs
- DataGridViewSortCompareEventArgs.cs
- AmbiguousMatchException.cs
- FtpWebResponse.cs
- Rectangle.cs
- UnsafeNativeMethods.cs
- XmlWrappingReader.cs
- ApplicationActivator.cs
- DataRecordInfo.cs
- IdentitySection.cs
- Convert.cs
- InternalConfigEventArgs.cs
- HyperLinkColumn.cs
- ThicknessAnimationBase.cs
- SubclassTypeValidator.cs
- DataSourceSelectArguments.cs
- FactorySettingsElement.cs
- RuntimeConfig.cs
- PropertyToken.cs
- CrossContextChannel.cs
- InputLanguageSource.cs
- XmlSerializerVersionAttribute.cs
- _ListenerAsyncResult.cs
- AssemblyAssociatedContentFileAttribute.cs
- NativeObjectSecurity.cs
- CornerRadiusConverter.cs
- AutoResetEvent.cs
- Repeater.cs
- NavigationPropertyEmitter.cs
- ScrollPattern.cs
- XmlCharType.cs
- AutoGeneratedField.cs
- DataStorage.cs
- ObjectMemberMapping.cs
- Int32CAMarshaler.cs
- SplitContainer.cs
- LocalizabilityAttribute.cs
- Evaluator.cs
- DescendantOverDescendantQuery.cs
- DbDeleteCommandTree.cs
- SendMailErrorEventArgs.cs
- ExpandableObjectConverter.cs
- StringFunctions.cs
- RemoteWebConfigurationHost.cs
- storepermission.cs
- PathGeometry.cs
- XPathNodeIterator.cs
- EntityDataSourceContextCreatedEventArgs.cs
- SiteMapProvider.cs
- DescendantQuery.cs
- EventLogPermission.cs
- SchemaCollectionPreprocessor.cs
- CustomCredentialPolicy.cs
- InsufficientExecutionStackException.cs
- DataListItem.cs
- FormViewInsertEventArgs.cs
- HttpModule.cs
- PeerValidationBehavior.cs
- SecurityPermission.cs
- PinProtectionHelper.cs
- FlagsAttribute.cs
- MenuRenderer.cs
- Trace.cs
- QilExpression.cs
- objectquery_tresulttype.cs
- SqlProvider.cs
- Slider.cs
- DependencyPropertyKey.cs
- SqlProcedureAttribute.cs
- ProfileService.cs
- MultipleViewProviderWrapper.cs
- AndCondition.cs