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
- SqlUnionizer.cs
- ScopelessEnumAttribute.cs
- EllipseGeometry.cs
- AuthenticatedStream.cs
- ChtmlTextWriter.cs
- LambdaCompiler.Address.cs
- TextServicesCompartmentContext.cs
- WebBrowserNavigatingEventHandler.cs
- NavigationPropertyEmitter.cs
- OutOfProcStateClientManager.cs
- DetailsViewInsertedEventArgs.cs
- WizardForm.cs
- MessageOperationFormatter.cs
- Button.cs
- BooleanFunctions.cs
- base64Transforms.cs
- ParenthesizePropertyNameAttribute.cs
- ListParaClient.cs
- WebRequestModulesSection.cs
- SoapProtocolImporter.cs
- PanelStyle.cs
- SafeRightsManagementHandle.cs
- TypeUtil.cs
- MimeWriter.cs
- DataKeyCollection.cs
- OutputCacheSettings.cs
- NonSerializedAttribute.cs
- XmlElementAttribute.cs
- ScriptServiceAttribute.cs
- ValidationService.cs
- UnsafeCollabNativeMethods.cs
- OlePropertyStructs.cs
- ToolStripGrip.cs
- Keyboard.cs
- DictionarySurrogate.cs
- JavaScriptObjectDeserializer.cs
- EventToken.cs
- XmlDataImplementation.cs
- HyperLinkDesigner.cs
- SqlDataSourceSelectingEventArgs.cs
- ImportedPolicyConversionContext.cs
- SiblingIterators.cs
- GroupBox.cs
- KeyInterop.cs
- WebPartConnectionsCancelVerb.cs
- dataSvcMapFileLoader.cs
- ActiveXSite.cs
- SQLBinaryStorage.cs
- VectorAnimation.cs
- DataGridPageChangedEventArgs.cs
- DataGridViewSelectedRowCollection.cs
- PeerNameRegistration.cs
- RuntimeCompatibilityAttribute.cs
- DashStyles.cs
- SplineKeyFrames.cs
- SizeKeyFrameCollection.cs
- QueryOperator.cs
- RegexParser.cs
- FrugalList.cs
- Rotation3DAnimation.cs
- DocumentApplicationState.cs
- CollectionChangedEventManager.cs
- AssemblyUtil.cs
- TypeSystem.cs
- XmlDocumentType.cs
- ClientSettingsStore.cs
- WsdlBuildProvider.cs
- PasswordTextContainer.cs
- OracleRowUpdatedEventArgs.cs
- WebResponse.cs
- FixedSOMFixedBlock.cs
- XsltCompileContext.cs
- CodeIndexerExpression.cs
- _TLSstream.cs
- Translator.cs
- XPathSelectionIterator.cs
- ControlTemplate.cs
- Keyboard.cs
- WebPermission.cs
- OverlappedContext.cs
- SystemException.cs
- GlyphsSerializer.cs
- AuthenticationModuleElement.cs
- SymmetricAlgorithm.cs
- ImageMap.cs
- XmlSiteMapProvider.cs
- UInt16Storage.cs
- httpserverutility.cs
- AmbientProperties.cs
- ConstantSlot.cs
- RadioButtonBaseAdapter.cs
- DataGridViewCellParsingEventArgs.cs
- SQLInt16Storage.cs
- Executor.cs
- CleanUpVirtualizedItemEventArgs.cs
- SpeechAudioFormatInfo.cs
- ConfigXmlCDataSection.cs
- CqlLexer.cs
- EdmFunctions.cs
- PrivateFontCollection.cs