Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- LiteralTextParser.cs
- DataGridAddNewRow.cs
- FreeFormDragDropManager.cs
- EntityContainerRelationshipSetEnd.cs
- NotifyIcon.cs
- RealProxy.cs
- PersistNameAttribute.cs
- TextServicesDisplayAttribute.cs
- Encoder.cs
- XmlSerializerObjectSerializer.cs
- EventNotify.cs
- CertificateElement.cs
- IndicShape.cs
- SmiEventSink.cs
- DataTablePropertyDescriptor.cs
- OpenFileDialog.cs
- SecUtil.cs
- TiffBitmapDecoder.cs
- _TransmitFileOverlappedAsyncResult.cs
- ResponseBodyWriter.cs
- AxisAngleRotation3D.cs
- HttpWriter.cs
- BoolExpressionVisitors.cs
- EnvelopedSignatureTransform.cs
- TreeViewEvent.cs
- ServiceKnownTypeAttribute.cs
- WebBrowser.cs
- RC2.cs
- SmiMetaData.cs
- XmlQualifiedName.cs
- GiveFeedbackEvent.cs
- MinimizableAttributeTypeConverter.cs
- SiteMembershipCondition.cs
- XmlEntity.cs
- SettingsAttributeDictionary.cs
- MiniModule.cs
- FrameSecurityDescriptor.cs
- DynamicField.cs
- GeneralTransform3DGroup.cs
- DbConnectionPool.cs
- PartialList.cs
- SingleAnimationUsingKeyFrames.cs
- KeyedHashAlgorithm.cs
- MeasurementDCInfo.cs
- WindowsGraphicsWrapper.cs
- DelegateHelpers.Generated.cs
- ItemContainerProviderWrapper.cs
- MemberHolder.cs
- OraclePermission.cs
- RelationshipFixer.cs
- OdbcDataAdapter.cs
- ZipIOExtraField.cs
- ComponentSerializationService.cs
- TrackingAnnotationCollection.cs
- ToolStripDropDownItem.cs
- OracleCommandSet.cs
- ControlOperationInvoker.cs
- SystemWebSectionGroup.cs
- XmlRootAttribute.cs
- SnapshotChangeTrackingStrategy.cs
- PersonalizationProvider.cs
- InputMethodStateTypeInfo.cs
- EventData.cs
- ReadOnlyDataSourceView.cs
- ConfigurationManagerHelper.cs
- OptimisticConcurrencyException.cs
- SwitchElementsCollection.cs
- DependencyPropertyAttribute.cs
- WebPartsPersonalization.cs
- SmiSettersStream.cs
- serverconfig.cs
- XmlIlGenerator.cs
- ServerIdentity.cs
- IssuerInformation.cs
- Page.cs
- ListDependantCardsRequest.cs
- Tuple.cs
- RadioButtonBaseAdapter.cs
- ViewManager.cs
- ImageDrawing.cs
- SessionState.cs
- PTUtility.cs
- MatrixIndependentAnimationStorage.cs
- OutputScopeManager.cs
- CommonDialog.cs
- FormatSelectingMessageInspector.cs
- DocumentReferenceCollection.cs
- ServiceMemoryGates.cs
- DependencyPropertyChangedEventArgs.cs
- RemoteTokenFactory.cs
- DiagnosticEventProvider.cs
- PassportAuthenticationModule.cs
- EdmFunction.cs
- ViewCellRelation.cs
- DbParameterCollectionHelper.cs
- VisualBasicSettings.cs
- ReliabilityContractAttribute.cs
- PeerDuplexChannelListener.cs
- CompositeCollection.cs
- SystemUnicastIPAddressInformation.cs