Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Configuration / CapabilitiesSection.cs / 1305376 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HttpInputStream.cs
- RijndaelCryptoServiceProvider.cs
- XmlBaseWriter.cs
- WebPartCancelEventArgs.cs
- PairComparer.cs
- UIInitializationException.cs
- SQLInt64Storage.cs
- FileIOPermission.cs
- FilterRepeater.cs
- SQLBytesStorage.cs
- TextViewBase.cs
- TraceShell.cs
- CodeTypeDeclarationCollection.cs
- SystemIPAddressInformation.cs
- StateMachineWorkflowDesigner.cs
- ConsoleCancelEventArgs.cs
- NativeMethods.cs
- CellRelation.cs
- ContextMenuAutomationPeer.cs
- SchemeSettingElementCollection.cs
- ModuleBuilder.cs
- DBPropSet.cs
- LocalizationComments.cs
- CustomSignedXml.cs
- ColorBlend.cs
- ErrorInfoXmlDocument.cs
- GeneralTransform2DTo3D.cs
- SystemParameters.cs
- ComponentDispatcherThread.cs
- WebPartEditorApplyVerb.cs
- DNS.cs
- EdmEntityTypeAttribute.cs
- GeneralTransform3D.cs
- AddInBase.cs
- ObjectHandle.cs
- SqlClientPermission.cs
- DataGridViewLayoutData.cs
- DesignerOptionService.cs
- ArgumentNullException.cs
- RowToFieldTransformer.cs
- XmlUnspecifiedAttribute.cs
- ExceptionHandlers.cs
- AuthenticateEventArgs.cs
- DateRangeEvent.cs
- WindowsBrush.cs
- ObjectAnimationUsingKeyFrames.cs
- UnitySerializationHolder.cs
- DesigntimeLicenseContextSerializer.cs
- DataColumnCollection.cs
- DataGridViewCellCancelEventArgs.cs
- PipelineModuleStepContainer.cs
- NotifyInputEventArgs.cs
- WebContext.cs
- IndependentAnimationStorage.cs
- ResourceReader.cs
- GeneralTransformGroup.cs
- AdornerHitTestResult.cs
- ConfigurationSectionCollection.cs
- ProvidePropertyAttribute.cs
- VisualStyleTypesAndProperties.cs
- HtmlTable.cs
- SubMenuStyleCollection.cs
- DataListItemEventArgs.cs
- ProfileProvider.cs
- FormCollection.cs
- EnglishPluralizationService.cs
- FormatVersion.cs
- SamlSecurityToken.cs
- CompiledQueryCacheEntry.cs
- ExternalFile.cs
- MultiView.cs
- IndentTextWriter.cs
- DoubleLinkList.cs
- CellParaClient.cs
- PathTooLongException.cs
- PageAsyncTaskManager.cs
- ToolBar.cs
- SqlTypeSystemProvider.cs
- activationcontext.cs
- ScaleTransform.cs
- FactoryId.cs
- SchemaTableOptionalColumn.cs
- ZipIOBlockManager.cs
- TrackPoint.cs
- OpenTypeLayoutCache.cs
- IDispatchConstantAttribute.cs
- PriorityQueue.cs
- LedgerEntryCollection.cs
- Span.cs
- SqlDataSourceSummaryPanel.cs
- Camera.cs
- LinqDataSourceHelper.cs
- UnmanagedBitmapWrapper.cs
- SessionState.cs
- AggregationMinMaxHelpers.cs
- DBProviderConfigurationHandler.cs
- InkCollectionBehavior.cs
- ObjectListComponentEditor.cs
- FlowLayout.cs
- TemplateNameScope.cs