Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- LambdaCompiler.Statements.cs
- LazyInitializer.cs
- DataSysAttribute.cs
- XmlTextWriter.cs
- LockCookie.cs
- ValueUtilsSmi.cs
- SecurityDocument.cs
- WebPartEditVerb.cs
- ServiceDescriptions.cs
- ProgressBarAutomationPeer.cs
- MdImport.cs
- CatalogPartCollection.cs
- AuthenticationManager.cs
- ListViewCommandEventArgs.cs
- MessageDirection.cs
- CultureInfoConverter.cs
- UInt64Storage.cs
- ImageCollectionCodeDomSerializer.cs
- EntityChangedParams.cs
- MissingMemberException.cs
- DocumentOutline.cs
- StructureChangedEventArgs.cs
- IntSecurity.cs
- BamlResourceSerializer.cs
- PrimitiveSchema.cs
- TableSectionStyle.cs
- DbMetaDataColumnNames.cs
- smtppermission.cs
- ThicknessAnimationBase.cs
- EventLog.cs
- EdmComplexTypeAttribute.cs
- BinaryCommonClasses.cs
- BindingFormattingDialog.cs
- BuildManager.cs
- EdmTypeAttribute.cs
- OutputCacheEntry.cs
- SafeLibraryHandle.cs
- AudioLevelUpdatedEventArgs.cs
- OdbcUtils.cs
- FileEnumerator.cs
- XmlSchemaInfo.cs
- AppDomainGrammarProxy.cs
- Attachment.cs
- DataGridViewCellValueEventArgs.cs
- WorkItem.cs
- PublishLicense.cs
- NullableDecimalAverageAggregationOperator.cs
- LabelAutomationPeer.cs
- DeploymentSectionCache.cs
- TextTreeDeleteContentUndoUnit.cs
- AdPostCacheSubstitution.cs
- DataRowCollection.cs
- TextEndOfParagraph.cs
- OperatorExpressions.cs
- VersionedStream.cs
- FrameSecurityDescriptor.cs
- GeneralTransform3DTo2D.cs
- DocumentViewerHelper.cs
- WebPartActionVerb.cs
- AttributeQuery.cs
- XmlSchemaInclude.cs
- NameTable.cs
- AnimatedTypeHelpers.cs
- ValueProviderWrapper.cs
- XmlAnyElementAttribute.cs
- Point3D.cs
- SelectedPathEditor.cs
- DecoderFallback.cs
- ExpanderAutomationPeer.cs
- UnicodeEncoding.cs
- PenCursorManager.cs
- UniqueIdentifierService.cs
- Closure.cs
- OpCellTreeNode.cs
- HTMLTextWriter.cs
- XmlSchemaSimpleContentExtension.cs
- CaseInsensitiveOrdinalStringComparer.cs
- ImageButton.cs
- EraserBehavior.cs
- WebPartConnectionCollection.cs
- IsolatedStorageException.cs
- X509IssuerSerialKeyIdentifierClause.cs
- LogicalChannel.cs
- FilterableAttribute.cs
- XmlSchemaSimpleContentExtension.cs
- Rotation3DAnimationBase.cs
- SchemaCollectionCompiler.cs
- EncryptedPackageFilter.cs
- ProviderConnectionPointCollection.cs
- ConstraintManager.cs
- MethodBody.cs
- DateTimeConverter.cs
- ExponentialEase.cs
- EncodingNLS.cs
- DataGridViewComboBoxCell.cs
- SchemaConstraints.cs
- EntityClassGenerator.cs
- OdbcDataReader.cs
- XPathBinder.cs
- BulletedList.cs