Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Configuration.cs
- UriTemplateLiteralQueryValue.cs
- AccessedThroughPropertyAttribute.cs
- ThreadExceptionDialog.cs
- MenuItem.cs
- AgileSafeNativeMemoryHandle.cs
- HttpCapabilitiesSectionHandler.cs
- GetPolicyDetailsRequest.cs
- LeftCellWrapper.cs
- AuthenticationConfig.cs
- EventPrivateKey.cs
- SessionEndingCancelEventArgs.cs
- UIntPtr.cs
- WinInet.cs
- DetailsViewRow.cs
- UnitySerializationHolder.cs
- List.cs
- EmptyEnumerable.cs
- LineSegment.cs
- DropShadowEffect.cs
- GC.cs
- BrushValueSerializer.cs
- ObjectItemAssemblyLoader.cs
- DataGridViewCell.cs
- BindingMemberInfo.cs
- ItemsPanelTemplate.cs
- ReferenceConverter.cs
- MapPathBasedVirtualPathProvider.cs
- DBNull.cs
- UserNameSecurityTokenProvider.cs
- _NTAuthentication.cs
- PerformanceCounterPermissionEntryCollection.cs
- LogEntrySerializer.cs
- InstanceContextManager.cs
- XPathEmptyIterator.cs
- WebReferencesBuildProvider.cs
- ZoneButton.cs
- CodeDelegateInvokeExpression.cs
- SqlDataAdapter.cs
- WebGetAttribute.cs
- SafeNativeMethodsMilCoreApi.cs
- ObjectTypeMapping.cs
- DataGridViewImageColumn.cs
- ListManagerBindingsCollection.cs
- HttpHandlersSection.cs
- DocumentPropertiesDialog.cs
- NoPersistProperty.cs
- BatchParser.cs
- Pair.cs
- ReadOnlyDictionary.cs
- MultipartContentParser.cs
- TextTreeUndo.cs
- ProgressChangedEventArgs.cs
- ObjectPersistData.cs
- DbMetaDataCollectionNames.cs
- HostProtectionException.cs
- GeneralTransformGroup.cs
- XsltOutput.cs
- PerformanceCounterCategory.cs
- PermissionSet.cs
- SafeRightsManagementQueryHandle.cs
- MsmqVerifier.cs
- ApplyImportsAction.cs
- columnmapkeybuilder.cs
- ListViewItemEventArgs.cs
- Compensation.cs
- InternalRelationshipCollection.cs
- XhtmlConformanceSection.cs
- AttributeXamlType.cs
- CommaDelimitedStringAttributeCollectionConverter.cs
- JsonSerializer.cs
- FieldMetadata.cs
- QueryCacheKey.cs
- AliasGenerator.cs
- PersonalizationStateInfoCollection.cs
- Byte.cs
- MemberMaps.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- AnimationClock.cs
- KeyPressEvent.cs
- TdsValueSetter.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- CodeDomConfigurationHandler.cs
- AttachedPropertyBrowsableAttribute.cs
- GroupBox.cs
- PrimarySelectionGlyph.cs
- CodeExporter.cs
- LogRestartAreaEnumerator.cs
- ProcessHostFactoryHelper.cs
- ControlAdapter.cs
- ProfileEventArgs.cs
- ComponentRenameEvent.cs
- DataAdapter.cs
- FileEnumerator.cs
- InfoCardRSACryptoProvider.cs
- MatrixValueSerializer.cs
- XmlSchemaElement.cs
- MemberProjectionIndex.cs
- SystemWebCachingSectionGroup.cs
- ColumnMapTranslator.cs