Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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); } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TextFormatterHost.cs
- BitmapVisualManager.cs
- ContainerVisual.cs
- XmlJsonReader.cs
- VersionedStream.cs
- AppDomainFactory.cs
- XmlNodeComparer.cs
- SerialErrors.cs
- HtmlElementCollection.cs
- IndexOutOfRangeException.cs
- ToggleButton.cs
- Table.cs
- AppDomainGrammarProxy.cs
- StringComparer.cs
- MouseCaptureWithinProperty.cs
- TypeDelegator.cs
- FixedTextView.cs
- TypeLoadException.cs
- UnsettableComboBox.cs
- WriteableOnDemandPackagePart.cs
- EmptyWithCancelationCheckWorkItem.cs
- RequestQueue.cs
- ProtocolInformationReader.cs
- LookupBindingPropertiesAttribute.cs
- SqlDataSourceCustomCommandPanel.cs
- SmtpLoginAuthenticationModule.cs
- XmlSchemaElement.cs
- _NegoState.cs
- BindUriHelper.cs
- ActivationServices.cs
- DataGridViewToolTip.cs
- BinaryWriter.cs
- entitydatasourceentitysetnameconverter.cs
- DbSetClause.cs
- Grant.cs
- SecurityCriticalDataForSet.cs
- AnnotationService.cs
- HtmlInputFile.cs
- NativeMethods.cs
- PropertyNames.cs
- DiagnosticTraceSource.cs
- RemoteWebConfigurationHost.cs
- StandardBindingCollectionElement.cs
- Help.cs
- GeometryModel3D.cs
- DbConnectionHelper.cs
- CompensatableTransactionScopeActivity.cs
- BamlCollectionHolder.cs
- Animatable.cs
- InvalidEnumArgumentException.cs
- RegistrySecurity.cs
- DataServiceHost.cs
- WpfPayload.cs
- XamlVector3DCollectionSerializer.cs
- Size3DValueSerializer.cs
- XmlValidatingReaderImpl.cs
- ListViewEditEventArgs.cs
- ThumbAutomationPeer.cs
- XmlSchemaSimpleTypeList.cs
- Validator.cs
- RpcResponse.cs
- DefaultTraceListener.cs
- SecondaryViewProvider.cs
- PriorityBindingExpression.cs
- Msec.cs
- GuidConverter.cs
- ClientApiGenerator.cs
- Transform.cs
- XmlSiteMapProvider.cs
- MdiWindowListStrip.cs
- Comparer.cs
- XmlAttribute.cs
- StrictAndMessageFilter.cs
- XmlSerializationGeneratedCode.cs
- EpmCustomContentDeSerializer.cs
- ImmutableCollection.cs
- Guid.cs
- VisualStyleRenderer.cs
- Utilities.cs
- LogLogRecordHeader.cs
- UnionCodeGroup.cs
- mediaeventargs.cs
- PageCodeDomTreeGenerator.cs
- SettingsProperty.cs
- Process.cs
- AspCompat.cs
- Registry.cs
- XmlSerializerSection.cs
- TextRange.cs
- SocketAddress.cs
- CatalogZoneDesigner.cs
- OleDbDataAdapter.cs
- AssemblyAttributes.cs
- PaintEvent.cs
- _TimerThread.cs
- Funcletizer.cs
- ParameterModifier.cs
- WeakReadOnlyCollection.cs
- Misc.cs
- ObjectKeyFrameCollection.cs