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
- LoggedException.cs
- ParseHttpDate.cs
- DataTemplateSelector.cs
- ZipIOCentralDirectoryBlock.cs
- RootBrowserWindow.cs
- SymbolType.cs
- Atom10FormatterFactory.cs
- SafeNativeMethodsOther.cs
- PropertyToken.cs
- ActivityInterfaces.cs
- util.cs
- SamlSubject.cs
- _SslState.cs
- EncoderReplacementFallback.cs
- StatusBarPanel.cs
- Button.cs
- MenuItemStyleCollection.cs
- HtmlInputHidden.cs
- NotifyIcon.cs
- UInt16.cs
- DesignerGenericWebPart.cs
- MimeParameters.cs
- GeneralTransform2DTo3D.cs
- AnnotationElement.cs
- Security.cs
- XmlSchemaComplexContent.cs
- DesignTimeHTMLTextWriter.cs
- ItemMap.cs
- pingexception.cs
- OrderedDictionary.cs
- DataGridViewBand.cs
- DefaultMemberAttribute.cs
- AddingNewEventArgs.cs
- UnknownWrapper.cs
- ThreadInterruptedException.cs
- CircleEase.cs
- FloaterBaseParaClient.cs
- X509Extension.cs
- HtmlLink.cs
- Relationship.cs
- OleDbError.cs
- DataTableNewRowEvent.cs
- TemplateField.cs
- XmlTypeMapping.cs
- DataObject.cs
- TrackingRecord.cs
- BufferModeSettings.cs
- ToolStripDropDownItem.cs
- ComponentChangedEvent.cs
- Socket.cs
- XmlToDatasetMap.cs
- ACL.cs
- securestring.cs
- MultiPropertyDescriptorGridEntry.cs
- GeneralTransform3D.cs
- Slider.cs
- Query.cs
- WinEventTracker.cs
- Grid.cs
- FusionWrap.cs
- XmlTextReaderImpl.cs
- WindowsTokenRoleProvider.cs
- StrongTypingException.cs
- Point4DValueSerializer.cs
- DataGridViewSortCompareEventArgs.cs
- SyndicationSerializer.cs
- PartManifestEntry.cs
- IIS7ConfigurationLoader.cs
- _CookieModule.cs
- SignatureGenerator.cs
- Material.cs
- CellLabel.cs
- WebZone.cs
- OleDbWrapper.cs
- PreviousTrackingServiceAttribute.cs
- ZipIOExtraFieldZip64Element.cs
- IPPacketInformation.cs
- SvcMapFileSerializer.cs
- SpellCheck.cs
- ParentQuery.cs
- login.cs
- LinearQuaternionKeyFrame.cs
- XmlTextAttribute.cs
- XmlnsDictionary.cs
- X500Name.cs
- HtmlCalendarAdapter.cs
- Vector3DCollection.cs
- FullTextState.cs
- ResourcePart.cs
- UnsafeNativeMethods.cs
- SelectionChangedEventArgs.cs
- BitmapEffectGeneralTransform.cs
- SrgsElementList.cs
- DecimalConstantAttribute.cs
- ErrorEventArgs.cs
- CaseCqlBlock.cs
- AddInBase.cs
- ChangeProcessor.cs
- CompiledRegexRunnerFactory.cs
- GridViewRowEventArgs.cs