Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / xsp / System / Web / Configuration / CapabilitiesSection.cs / 1 / CapabilitiesSection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Configuration { using System.Collections; using System.Collections.Specialized; using System.Diagnostics; using System.Globalization; using System.Reflection; using System.Security; using System.Text; using System.Text.RegularExpressions; using System.Threading; using System.Web.Caching; using System.Web.Compilation; using System.Web.Hosting; using System.Security.Permissions; // // Implementation of// expand the "with" pattern and match against the "match" expression. // internal class CapabilitiesSection : CapabilitiesRule { internal CapabilitiesPattern _expr; internal DelayedRegex _regex; internal CapabilitiesRule[] _rules; internal CapabilitiesSection(int type, DelayedRegex regex, CapabilitiesPattern expr, ArrayList rulelist) { _type = type; _regex = regex; _expr = expr; _rules = (CapabilitiesRule[])rulelist.ToArray(typeof(CapabilitiesRule)); } internal override void Evaluate(CapabilitiesState state) { Match match; state.Exit = false; if (_regex != null) { match = _regex.Match(_expr.Expand(state)); if (!match.Success) return; state.AddMatch(_regex, match); } for (int i = 0; i < _rules.Length; i++) { _rules[i].Evaluate(state); if (state.Exit) break; } if (_regex != null) { state.PopMatch(); } state.Exit = (Type == Case); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Configuration { using System.Collections; using System.Collections.Specialized; using System.Diagnostics; using System.Globalization; using System.Reflection; using System.Security; using System.Text; using System.Text.RegularExpressions; using System.Threading; using System.Web.Caching; using System.Web.Compilation; using System.Web.Hosting; using System.Security.Permissions; // // Implementation of// expand the "with" pattern and match against the "match" expression. // internal class CapabilitiesSection : CapabilitiesRule { internal CapabilitiesPattern _expr; internal DelayedRegex _regex; internal CapabilitiesRule[] _rules; internal CapabilitiesSection(int type, DelayedRegex regex, CapabilitiesPattern expr, ArrayList rulelist) { _type = type; _regex = regex; _expr = expr; _rules = (CapabilitiesRule[])rulelist.ToArray(typeof(CapabilitiesRule)); } internal override void Evaluate(CapabilitiesState state) { Match match; state.Exit = false; if (_regex != null) { match = _regex.Match(_expr.Expand(state)); if (!match.Success) return; state.AddMatch(_regex, match); } for (int i = 0; i < _rules.Length; i++) { _rules[i].Evaluate(state); if (state.Exit) break; } if (_regex != null) { state.PopMatch(); } state.Exit = (Type == Case); } } } // 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
- MergeLocalizationDirectives.cs
- RadioButtonRenderer.cs
- CollectionViewGroupRoot.cs
- UIElementCollection.cs
- ConstructorBuilder.cs
- UpdateTranslator.cs
- ParserContext.cs
- ViewManager.cs
- IDataContractSurrogate.cs
- ToolConsole.cs
- EventLog.cs
- ConstructorBuilder.cs
- Application.cs
- ResourceAttributes.cs
- ObjectQueryProvider.cs
- dbdatarecord.cs
- SymmetricKeyWrap.cs
- SplitterCancelEvent.cs
- GcSettings.cs
- WindowsRichEdit.cs
- CompilationLock.cs
- XmlILAnnotation.cs
- XhtmlBasicValidatorAdapter.cs
- SafeCryptoHandles.cs
- XmlSchemaComplexType.cs
- SaveCardRequest.cs
- VisualStyleInformation.cs
- VisualStyleRenderer.cs
- ManagementObjectCollection.cs
- MemberMaps.cs
- SqlInternalConnection.cs
- StyleSheetRefUrlEditor.cs
- SqlDuplicator.cs
- XmlSchemaExternal.cs
- LifetimeServices.cs
- grammarelement.cs
- WebServiceHostFactory.cs
- LineVisual.cs
- Point3D.cs
- TimeSpanOrInfiniteConverter.cs
- XmlSerializableWriter.cs
- StylusPlugin.cs
- WebPartConnectionsConnectVerb.cs
- SqlCacheDependencyDatabaseCollection.cs
- SystemInformation.cs
- ProviderUtil.cs
- WebPartMovingEventArgs.cs
- HttpNamespaceReservationInstallComponent.cs
- UnmanagedMemoryStreamWrapper.cs
- AssociatedControlConverter.cs
- TextServicesCompartmentContext.cs
- XmlDigitalSignatureProcessor.cs
- StreamWriter.cs
- ThousandthOfEmRealPoints.cs
- DispatcherBuilder.cs
- ParentUndoUnit.cs
- FusionWrap.cs
- DataBindingCollection.cs
- WinEventTracker.cs
- handlecollector.cs
- FixedStringLookup.cs
- OutOfMemoryException.cs
- TimelineGroup.cs
- DispatcherTimer.cs
- DbConnectionPoolCounters.cs
- UIAgentInitializationException.cs
- FormsIdentity.cs
- HttpCachePolicy.cs
- TdsEnums.cs
- MetricEntry.cs
- datacache.cs
- SspiNegotiationTokenProvider.cs
- ItemsPanelTemplate.cs
- FrameAutomationPeer.cs
- SmiEventSink_DeferedProcessing.cs
- UnsafeNativeMethods.cs
- ScriptServiceAttribute.cs
- Brush.cs
- Sentence.cs
- XmlIlVisitor.cs
- InkCanvasSelectionAdorner.cs
- ToolboxItemFilterAttribute.cs
- NullExtension.cs
- ScriptMethodAttribute.cs
- OleDbConnectionFactory.cs
- GridLengthConverter.cs
- VectorKeyFrameCollection.cs
- DecimalConstantAttribute.cs
- SmtpLoginAuthenticationModule.cs
- TypeBuilderInstantiation.cs
- PermissionSetTriple.cs
- TextBoxView.cs
- BitmapEffectDrawing.cs
- EditorPartCollection.cs
- CompilerScopeManager.cs
- FontStretches.cs
- WebDisplayNameAttribute.cs
- nulltextnavigator.cs
- XsdDateTime.cs
- ProcessThread.cs