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
- UserControlParser.cs
- TextPointer.cs
- Activator.cs
- HScrollProperties.cs
- ScrollViewer.cs
- TypefaceCollection.cs
- Validator.cs
- ExpandSegment.cs
- PackageDigitalSignature.cs
- QilXmlWriter.cs
- UpdateDelegates.Generated.cs
- MasterPage.cs
- HybridObjectCache.cs
- ISAPIWorkerRequest.cs
- Positioning.cs
- ElementProxy.cs
- QueryOutputWriter.cs
- StylusPointProperties.cs
- BStrWrapper.cs
- Atom10FeedFormatter.cs
- DateTimeOffsetStorage.cs
- AttachInfo.cs
- SingleTagSectionHandler.cs
- StreamInfo.cs
- Int32CollectionValueSerializer.cs
- Quaternion.cs
- Invariant.cs
- NullableIntMinMaxAggregationOperator.cs
- Assembly.cs
- LineGeometry.cs
- WorkflowDebuggerSteppingAttribute.cs
- ListViewInsertionMark.cs
- SchemaMerger.cs
- DataListItem.cs
- SoapWriter.cs
- LogArchiveSnapshot.cs
- UserControlCodeDomTreeGenerator.cs
- DropTarget.cs
- TextElement.cs
- MarshalDirectiveException.cs
- ResourceDefaultValueAttribute.cs
- OletxDependentTransaction.cs
- NamespaceList.cs
- DisplayInformation.cs
- OdbcInfoMessageEvent.cs
- DataGridViewCellValidatingEventArgs.cs
- PageHandlerFactory.cs
- XDeferredAxisSource.cs
- EncodingDataItem.cs
- SemaphoreSecurity.cs
- RequestQueryParser.cs
- StringSource.cs
- SecurityDescriptor.cs
- __FastResourceComparer.cs
- PopupEventArgs.cs
- StateItem.cs
- CategoryNameCollection.cs
- LineInfo.cs
- TimeSpanValidatorAttribute.cs
- RuleProcessor.cs
- TextTabProperties.cs
- FramingDecoders.cs
- _KerberosClient.cs
- InvokeBase.cs
- DataRelationPropertyDescriptor.cs
- Wildcard.cs
- TrackingConditionCollection.cs
- DataTableMapping.cs
- BaseWebProxyFinder.cs
- WindowPattern.cs
- XmlEncodedRawTextWriter.cs
- NavigationProperty.cs
- Point3D.cs
- WorkItem.cs
- DocumentGridContextMenu.cs
- KeyPullup.cs
- MatrixIndependentAnimationStorage.cs
- HTTPNotFoundHandler.cs
- SizeIndependentAnimationStorage.cs
- ScriptControlDescriptor.cs
- HostedTransportConfigurationBase.cs
- AdornerDecorator.cs
- FileEnumerator.cs
- Tile.cs
- ChangeBlockUndoRecord.cs
- BaseTemplateCodeDomTreeGenerator.cs
- tooltip.cs
- CommandField.cs
- AdornerPresentationContext.cs
- ConfigurationSchemaErrors.cs
- MarshalByRefObject.cs
- WebBrowserNavigatedEventHandler.cs
- Timeline.cs
- HwndStylusInputProvider.cs
- StickyNoteContentControl.cs
- CellPartitioner.cs
- RelationshipEndMember.cs
- MethodImplAttribute.cs
- Deserializer.cs
- Int32Storage.cs