Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / XmlUtils / System / Xml / Xsl / XsltOld / CommentAction.cs / 1305376 / CommentAction.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.Xml; using System.Xml.XPath; internal class CommentAction : ContainerAction { internal override void Compile(Compiler compiler) { CompileAttributes(compiler); if (compiler.Recurse()) { CompileTemplate(compiler); compiler.ToParent(); } } internal override void Execute(Processor processor, ActionFrame frame) { Debug.Assert(processor != null && frame != null); switch (frame.State) { case Initialized: if (processor.BeginEvent(XPathNodeType.Comment, string.Empty, string.Empty, string.Empty, false) == false) { // Come back later break; } processor.PushActionFrame(frame); frame.State = ProcessingChildren; break; // Allow children to run case ProcessingChildren: if (processor.EndEvent(XPathNodeType.Comment) == false) { break; } frame.Finished(); break; default: Debug.Fail("Invalid IfAction execution state"); break; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// 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.Xml; using System.Xml.XPath; internal class CommentAction : ContainerAction { internal override void Compile(Compiler compiler) { CompileAttributes(compiler); if (compiler.Recurse()) { CompileTemplate(compiler); compiler.ToParent(); } } internal override void Execute(Processor processor, ActionFrame frame) { Debug.Assert(processor != null && frame != null); switch (frame.State) { case Initialized: if (processor.BeginEvent(XPathNodeType.Comment, string.Empty, string.Empty, string.Empty, false) == false) { // Come back later break; } processor.PushActionFrame(frame); frame.State = ProcessingChildren; break; // Allow children to run case ProcessingChildren: if (processor.EndEvent(XPathNodeType.Comment) == false) { break; } frame.Finished(); break; default: Debug.Fail("Invalid IfAction execution state"); break; } } } } // 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
- NativeMethods.cs
- BinHexDecoder.cs
- XmlDataSourceView.cs
- Stacktrace.cs
- PageAction.cs
- InkCanvasInnerCanvas.cs
- ChtmlTextWriter.cs
- CreateUserWizard.cs
- ServiceBehaviorElementCollection.cs
- UnsafeNativeMethods.cs
- AdRotatorDesigner.cs
- AssemblyName.cs
- FileDialogCustomPlacesCollection.cs
- CommentAction.cs
- Rule.cs
- DocumentGridContextMenu.cs
- Filter.cs
- ExpressionVisitorHelpers.cs
- IndependentAnimationStorage.cs
- EnumUnknown.cs
- WebFaultClientMessageInspector.cs
- JsonGlobals.cs
- XmlDeclaration.cs
- TablePattern.cs
- BackStopAuthenticationModule.cs
- SplitterPanel.cs
- SqlConnectionFactory.cs
- HeaderElement.cs
- GridErrorDlg.cs
- TableCellsCollectionEditor.cs
- SerializationFieldInfo.cs
- NavigatorOutput.cs
- BuildProvider.cs
- JapaneseCalendar.cs
- ItemCheckedEvent.cs
- CodeAccessPermission.cs
- GridViewColumnCollection.cs
- DesignerContextDescriptor.cs
- AnnotationStore.cs
- Atom10FormatterFactory.cs
- HtmlTable.cs
- DataMemberListEditor.cs
- CustomValidator.cs
- WebPartMenuStyle.cs
- PreservationFileWriter.cs
- UpdateInfo.cs
- CompositionDesigner.cs
- TextEditorSpelling.cs
- HttpFormatExtensions.cs
- Transform3DGroup.cs
- GeometryGroup.cs
- DataTableNewRowEvent.cs
- updateconfighost.cs
- LocationReference.cs
- CursorConverter.cs
- GridViewRow.cs
- TextComposition.cs
- ClientType.cs
- InstalledFontCollection.cs
- RtfToXamlReader.cs
- InternalEnumValidator.cs
- FtpCachePolicyElement.cs
- dataobject.cs
- TrackingProfile.cs
- CapabilitiesSection.cs
- DataObject.cs
- LayoutManager.cs
- arclist.cs
- TextEditorSelection.cs
- SignedInfo.cs
- Int16AnimationUsingKeyFrames.cs
- SafeTimerHandle.cs
- HtmlContainerControl.cs
- CodeArgumentReferenceExpression.cs
- TextServicesManager.cs
- ObjectStorage.cs
- _SslSessionsCache.cs
- PointUtil.cs
- __ConsoleStream.cs
- NetworkStream.cs
- WebPartZoneCollection.cs
- FormViewUpdatedEventArgs.cs
- NegotiationTokenAuthenticator.cs
- SendKeys.cs
- EnumValAlphaComparer.cs
- PermissionRequestEvidence.cs
- HandledEventArgs.cs
- UnsafeNativeMethodsTablet.cs
- SynchronizationContext.cs
- PasswordTextContainer.cs
- Polygon.cs
- XmlNamespaceDeclarationsAttribute.cs
- IsolatedStorageFile.cs
- UserControl.cs
- IndexedSelectQueryOperator.cs
- TextBoxView.cs
- Tuple.cs
- ValidationErrorInfo.cs
- EFTableProvider.cs
- JavaScriptSerializer.cs