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
- SessionPageStatePersister.cs
- BitVector32.cs
- DataViewSetting.cs
- SystemInfo.cs
- Asn1IntegerConverter.cs
- SQLInt64Storage.cs
- FillBehavior.cs
- ModelTreeEnumerator.cs
- DynamicFilterExpression.cs
- MtomMessageEncodingElement.cs
- PatternMatcher.cs
- PeerUnsafeNativeMethods.cs
- ZipPackagePart.cs
- PathFigureCollection.cs
- MailWebEventProvider.cs
- FileDialogCustomPlace.cs
- BrowserInteropHelper.cs
- MobileErrorInfo.cs
- Model3D.cs
- securitymgrsite.cs
- ASCIIEncoding.cs
- ToolStripItemRenderEventArgs.cs
- Int32EqualityComparer.cs
- InstancePersistenceContext.cs
- TreeNodeEventArgs.cs
- WindowsGraphics2.cs
- BrushMappingModeValidation.cs
- RichTextBox.cs
- FixedHyperLink.cs
- ReadOnlyDictionary.cs
- PropertyItemInternal.cs
- ProfileService.cs
- ZoneMembershipCondition.cs
- ImageCodecInfoPrivate.cs
- HwndProxyElementProvider.cs
- XmlQueryCardinality.cs
- Literal.cs
- newitemfactory.cs
- DataGridViewTextBoxColumn.cs
- ExtenderProvidedPropertyAttribute.cs
- DataGridViewColumnDesigner.cs
- WindowsSlider.cs
- DecoderFallback.cs
- QueueProcessor.cs
- _SingleItemRequestCache.cs
- ExpressionVisitor.cs
- HitTestDrawingContextWalker.cs
- TaskExtensions.cs
- DatatypeImplementation.cs
- FragmentQueryKB.cs
- TabletCollection.cs
- ProfileProvider.cs
- ControlEvent.cs
- SystemUdpStatistics.cs
- RSAOAEPKeyExchangeDeformatter.cs
- DataGridViewSortCompareEventArgs.cs
- RijndaelManagedTransform.cs
- BaseTemplateCodeDomTreeGenerator.cs
- CompoundFileReference.cs
- BuildDependencySet.cs
- WebMessageEncoderFactory.cs
- WeakReferenceKey.cs
- Duration.cs
- QualifiedCellIdBoolean.cs
- DefaultEventAttribute.cs
- SecUtil.cs
- TransformerInfoCollection.cs
- WorkItem.cs
- DefaultTextStoreTextComposition.cs
- ASCIIEncoding.cs
- DataGridViewIntLinkedList.cs
- AuthenticationService.cs
- XmlSchemaNotation.cs
- SqlCachedBuffer.cs
- ButtonPopupAdapter.cs
- SpecialNameAttribute.cs
- OdbcPermission.cs
- configsystem.cs
- StateBag.cs
- PropertyDescriptor.cs
- WorkBatch.cs
- MessageQueueEnumerator.cs
- PrimitiveSchema.cs
- TypeReference.cs
- ImportContext.cs
- RoleGroup.cs
- PropertyChangeTracker.cs
- ThreadStartException.cs
- WebPartTransformerCollection.cs
- ItemCheckEvent.cs
- CommaDelimitedStringAttributeCollectionConverter.cs
- NavigatorOutput.cs
- Debug.cs
- ChtmlLinkAdapter.cs
- PropertyCondition.cs
- ConfigurationManager.cs
- AlternateViewCollection.cs
- MultiPropertyDescriptorGridEntry.cs
- ItemCheckedEvent.cs
- cryptoapiTransform.cs