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
- VisualCollection.cs
- Compiler.cs
- StylusPlugin.cs
- StylusEventArgs.cs
- ObjectDataProvider.cs
- RemotingAttributes.cs
- MetadataPropertyCollection.cs
- XmlUtf8RawTextWriter.cs
- HwndSubclass.cs
- StringWriter.cs
- SHA1.cs
- DragDrop.cs
- Int32CollectionConverter.cs
- RectAnimationBase.cs
- isolationinterop.cs
- XPathNavigator.cs
- SafeTimerHandle.cs
- LocalizableResourceBuilder.cs
- ObjectContextServiceProvider.cs
- IERequestCache.cs
- CollectionViewGroupRoot.cs
- ArrayWithOffset.cs
- Relationship.cs
- SequentialOutput.cs
- ProjectedWrapper.cs
- Behavior.cs
- ImpersonationContext.cs
- DateTimeFormat.cs
- TextElementEnumerator.cs
- ZipIOBlockManager.cs
- HtmlHead.cs
- PropertyDescriptorComparer.cs
- StaticExtension.cs
- ReferencedCollectionType.cs
- WebColorConverter.cs
- Propagator.JoinPropagator.cs
- PassportIdentity.cs
- ResourceExpressionBuilder.cs
- ThreadLocal.cs
- ParseNumbers.cs
- FocusWithinProperty.cs
- GraphicsContext.cs
- SlotInfo.cs
- SoapProtocolImporter.cs
- BooleanAnimationBase.cs
- GPRECTF.cs
- SqlDataReader.cs
- ThemeableAttribute.cs
- CodeVariableDeclarationStatement.cs
- HtmlSelect.cs
- SupportsEventValidationAttribute.cs
- FormsAuthenticationCredentials.cs
- SystemIPGlobalProperties.cs
- DynamicResourceExtensionConverter.cs
- XsltOutput.cs
- ResourceCategoryAttribute.cs
- FileLogRecordEnumerator.cs
- WebPermission.cs
- ScrollViewerAutomationPeer.cs
- CodeTypeParameter.cs
- ExecutorLocksHeldException.cs
- TextEditorParagraphs.cs
- LightweightEntityWrapper.cs
- WaitHandle.cs
- BooleanFunctions.cs
- DbParameterHelper.cs
- DataServiceContext.cs
- BasicHttpSecurityElement.cs
- LogEntryUtils.cs
- DesignConnection.cs
- OdbcDataAdapter.cs
- SoapReflectionImporter.cs
- XmlAttributeCollection.cs
- SettingsBindableAttribute.cs
- AnyAllSearchOperator.cs
- Transform3DGroup.cs
- ExcludePathInfo.cs
- TableLayoutStyleCollection.cs
- HtmlTableRow.cs
- SqlException.cs
- SafeProcessHandle.cs
- EnumerableRowCollection.cs
- RuleInfoComparer.cs
- SerializationEventsCache.cs
- RoutedEventValueSerializer.cs
- BaseWebProxyFinder.cs
- Menu.cs
- PropVariant.cs
- StubHelpers.cs
- SqlAggregateChecker.cs
- ItemList.cs
- SolidColorBrush.cs
- WebPartDeleteVerb.cs
- DataKey.cs
- HttpClientCertificate.cs
- XamlUtilities.cs
- WebBrowserUriTypeConverter.cs
- ToolStripMenuItemDesigner.cs
- BuildProviderUtils.cs
- LinearGradientBrush.cs