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
- TransformGroup.cs
- Relationship.cs
- UTF32Encoding.cs
- DynamicFilter.cs
- Config.cs
- RSACryptoServiceProvider.cs
- HandoffBehavior.cs
- MemberRelationshipService.cs
- Internal.cs
- DataBoundControlAdapter.cs
- EditableRegion.cs
- TimeSpanParse.cs
- QuaternionRotation3D.cs
- Cell.cs
- PropertyTabChangedEvent.cs
- LabelLiteral.cs
- FileDialog_Vista.cs
- DBCommandBuilder.cs
- DynamicRendererThreadManager.cs
- TcpStreams.cs
- DataRelation.cs
- EventLogEntry.cs
- FontUnitConverter.cs
- ListViewHitTestInfo.cs
- RightsManagementEncryptedStream.cs
- WinInet.cs
- UrlPath.cs
- UpdateDelegates.Generated.cs
- MsmqIntegrationBinding.cs
- AssociatedControlConverter.cs
- DrawingContext.cs
- DataListCommandEventArgs.cs
- StorageModelBuildProvider.cs
- FontCacheUtil.cs
- FrugalList.cs
- EntityDataSourceState.cs
- Html32TextWriter.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- TrackBarRenderer.cs
- FunctionQuery.cs
- PerformanceCounterLib.cs
- QueryRewriter.cs
- QueryOpeningEnumerator.cs
- IgnoreFileBuildProvider.cs
- InternalEnumValidator.cs
- filewebresponse.cs
- DockProviderWrapper.cs
- Brush.cs
- ParserOptions.cs
- MessageQueueKey.cs
- XmlSchemaIdentityConstraint.cs
- DataBoundControlHelper.cs
- XsltArgumentList.cs
- GridViewActionList.cs
- ProfileParameter.cs
- RepeatButton.cs
- ManagementEventWatcher.cs
- WebPartActionVerb.cs
- Events.cs
- FixedSOMPage.cs
- Quad.cs
- RefType.cs
- TextTreeText.cs
- DaylightTime.cs
- XmlArrayAttribute.cs
- Base64Stream.cs
- RelatedImageListAttribute.cs
- BatchServiceHost.cs
- TypeExtension.cs
- xmlfixedPageInfo.cs
- X509ThumbprintKeyIdentifierClause.cs
- LoadGrammarCompletedEventArgs.cs
- XmlNamespaceDeclarationsAttribute.cs
- BuildResult.cs
- CodeMethodInvokeExpression.cs
- InternalPermissions.cs
- HtmlTernaryTree.cs
- XmlSerializableReader.cs
- ImageList.cs
- InputMethod.cs
- MergeFailedEvent.cs
- FacetEnabledSchemaElement.cs
- Control.cs
- XmlSchemaAttribute.cs
- ChannelManagerBase.cs
- Matrix3D.cs
- XmlBaseReader.cs
- MetadataArtifactLoaderComposite.cs
- HTTPNotFoundHandler.cs
- Substitution.cs
- EncodingTable.cs
- VisualTreeUtils.cs
- LocatorGroup.cs
- HtmlTernaryTree.cs
- Attributes.cs
- MetadataExporter.cs
- ComponentEditorPage.cs
- PeerNode.cs
- __ConsoleStream.cs
- InstancePersistence.cs