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
- NullableBoolConverter.cs
- smtppermission.cs
- WindowsFont.cs
- AddInContractAttribute.cs
- TrustDriver.cs
- PerformanceCounterManager.cs
- SchemaImporter.cs
- StringAnimationUsingKeyFrames.cs
- ExpandCollapsePattern.cs
- XmlAttributeAttribute.cs
- WindowsTitleBar.cs
- FixedPageStructure.cs
- TaiwanLunisolarCalendar.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- StartUpEventArgs.cs
- OutOfMemoryException.cs
- ComponentChangingEvent.cs
- MsmqInputSessionChannel.cs
- StoreItemCollection.cs
- ResourcePool.cs
- OdbcConnectionOpen.cs
- CodeObjectCreateExpression.cs
- RuleSetCollection.cs
- RegexCharClass.cs
- TableDetailsRow.cs
- DataSvcMapFileSerializer.cs
- GatewayIPAddressInformationCollection.cs
- TrustVersion.cs
- EdmTypeAttribute.cs
- FakeModelItemImpl.cs
- CheckedPointers.cs
- ProcessExitedException.cs
- TabControlCancelEvent.cs
- TabletCollection.cs
- TypeElementCollection.cs
- DataGridViewLayoutData.cs
- DocumentGridPage.cs
- ImageBrush.cs
- DecimalAnimationUsingKeyFrames.cs
- LocationUpdates.cs
- FieldBuilder.cs
- DataFormats.cs
- XsltConvert.cs
- TypedDataSourceCodeGenerator.cs
- ProfessionalColors.cs
- SafeNativeMethods.cs
- CharStorage.cs
- DataPointer.cs
- ExpressionNormalizer.cs
- EndpointAddressElementBase.cs
- BoolExpressionVisitors.cs
- HtmlUtf8RawTextWriter.cs
- Debug.cs
- ProfileInfo.cs
- XmlCompatibilityReader.cs
- Light.cs
- HtmlForm.cs
- WebPartEventArgs.cs
- ExpressionBuilder.cs
- MetaTable.cs
- TreeWalker.cs
- SqlComparer.cs
- ImmutableClientRuntime.cs
- TextProviderWrapper.cs
- ViewgenGatekeeper.cs
- BamlRecordReader.cs
- Guid.cs
- TextElementAutomationPeer.cs
- AdornedElementPlaceholder.cs
- Byte.cs
- UnaryExpressionHelper.cs
- GlobalProxySelection.cs
- GlyphsSerializer.cs
- EllipseGeometry.cs
- Random.cs
- IDispatchConstantAttribute.cs
- CmsInterop.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- RectAnimationBase.cs
- PickDesigner.xaml.cs
- FloaterParagraph.cs
- AsyncOperation.cs
- ObjectDataSourceMethodEventArgs.cs
- HttpDictionary.cs
- LocalizableAttribute.cs
- WindowsFormsSectionHandler.cs
- Int64Converter.cs
- ChameleonKey.cs
- OptionalRstParameters.cs
- Char.cs
- DivideByZeroException.cs
- TabControl.cs
- RuleAction.cs
- ResolveCompletedEventArgs.cs
- ServiceConfigurationTraceRecord.cs
- ListBindableAttribute.cs
- ExpressionBuilderContext.cs
- BrowserDefinition.cs
- SequentialOutput.cs
- Collection.cs