Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / xsp / System / Web / Configuration / ExpressionBuilder.cs / 5 / ExpressionBuilder.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Configuration { using System; using System.Xml; using System.Configuration; using System.Collections.Specialized; using System.Collections; using System.Globalization; using System.IO; using System.Text; using System.Web.Compilation; using System.Reflection; using System.Web.Hosting; using System.Web.UI; using System.CodeDom.Compiler; using System.Web.Util; using System.ComponentModel; using System.Security.Permissions; [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class ExpressionBuilder : ConfigurationElement { private static ConfigurationPropertyCollection _properties; private static readonly ConfigurationProperty _propExpressionPrefix = new ConfigurationProperty("expressionPrefix", typeof(string), null, null, StdValidatorsAndConverters.NonEmptyStringValidator, ConfigurationPropertyOptions.IsRequired | ConfigurationPropertyOptions.IsKey); private static readonly ConfigurationProperty _propType = new ConfigurationProperty("type", typeof(string), null, null, StdValidatorsAndConverters.NonEmptyStringValidator, ConfigurationPropertyOptions.IsRequired); static ExpressionBuilder() { _properties = new ConfigurationPropertyCollection(); _properties.Add(_propExpressionPrefix); _properties.Add(_propType); } internal ExpressionBuilder() { } public ExpressionBuilder(string expressionPrefix, string theType) { ExpressionPrefix = expressionPrefix; Type = theType; } protected override ConfigurationPropertyCollection Properties { get { return _properties; } } [ConfigurationProperty("expressionPrefix", IsRequired = true, IsKey = true, DefaultValue = "")] [StringValidator(MinLength = 1)] public string ExpressionPrefix { get { return (string)base[_propExpressionPrefix]; } set { base[_propExpressionPrefix] = value; } } [ConfigurationProperty("type", IsRequired = true, DefaultValue = "")] [StringValidator(MinLength = 1)] public string Type { get { return (string)base[_propType]; } set { base[_propType] = value; } } internal Type TypeInternal { get { return CompilationUtil.LoadTypeWithChecks(Type, typeof(System.Web.Compilation.ExpressionBuilder), null, this, "type"); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Configuration { using System; using System.Xml; using System.Configuration; using System.Collections.Specialized; using System.Collections; using System.Globalization; using System.IO; using System.Text; using System.Web.Compilation; using System.Reflection; using System.Web.Hosting; using System.Web.UI; using System.CodeDom.Compiler; using System.Web.Util; using System.ComponentModel; using System.Security.Permissions; [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class ExpressionBuilder : ConfigurationElement { private static ConfigurationPropertyCollection _properties; private static readonly ConfigurationProperty _propExpressionPrefix = new ConfigurationProperty("expressionPrefix", typeof(string), null, null, StdValidatorsAndConverters.NonEmptyStringValidator, ConfigurationPropertyOptions.IsRequired | ConfigurationPropertyOptions.IsKey); private static readonly ConfigurationProperty _propType = new ConfigurationProperty("type", typeof(string), null, null, StdValidatorsAndConverters.NonEmptyStringValidator, ConfigurationPropertyOptions.IsRequired); static ExpressionBuilder() { _properties = new ConfigurationPropertyCollection(); _properties.Add(_propExpressionPrefix); _properties.Add(_propType); } internal ExpressionBuilder() { } public ExpressionBuilder(string expressionPrefix, string theType) { ExpressionPrefix = expressionPrefix; Type = theType; } protected override ConfigurationPropertyCollection Properties { get { return _properties; } } [ConfigurationProperty("expressionPrefix", IsRequired = true, IsKey = true, DefaultValue = "")] [StringValidator(MinLength = 1)] public string ExpressionPrefix { get { return (string)base[_propExpressionPrefix]; } set { base[_propExpressionPrefix] = value; } } [ConfigurationProperty("type", IsRequired = true, DefaultValue = "")] [StringValidator(MinLength = 1)] public string Type { get { return (string)base[_propType]; } set { base[_propType] = value; } } internal Type TypeInternal { get { return CompilationUtil.LoadTypeWithChecks(Type, typeof(System.Web.Compilation.ExpressionBuilder), null, this, "type"); } } } } // 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
- XmlnsDictionary.cs
- InvokeProviderWrapper.cs
- ParserStreamGeometryContext.cs
- SafeCancelMibChangeNotify.cs
- SHA1Managed.cs
- SimpleHandlerFactory.cs
- ToolStripDropDownItem.cs
- GenericRootAutomationPeer.cs
- ModelTreeEnumerator.cs
- LifetimeManager.cs
- PtsHelper.cs
- TextContainerHelper.cs
- _HeaderInfoTable.cs
- ADMembershipProvider.cs
- MaterializeFromAtom.cs
- ScriptHandlerFactory.cs
- ProfileBuildProvider.cs
- safesecurityhelperavalon.cs
- FlowDocumentFormatter.cs
- InstanceOwnerException.cs
- Variant.cs
- CellPartitioner.cs
- ImageCodecInfo.cs
- PeerApplicationLaunchInfo.cs
- TrackingParameters.cs
- GuidTagList.cs
- Lock.cs
- FileLoadException.cs
- Transform.cs
- VisualStyleInformation.cs
- ClientRuntime.cs
- FileLogRecordEnumerator.cs
- CommentEmitter.cs
- Bind.cs
- ReachUIElementCollectionSerializer.cs
- ThreadInterruptedException.cs
- EngineSite.cs
- PackageProperties.cs
- SystemFonts.cs
- EventLogEntryCollection.cs
- IdnMapping.cs
- httpstaticobjectscollection.cs
- Point3DCollectionConverter.cs
- IxmlLineInfo.cs
- PasswordBox.cs
- ObjectConverter.cs
- Registry.cs
- TextBoxAutomationPeer.cs
- _LocalDataStoreMgr.cs
- RuleSetCollection.cs
- DbConnectionPool.cs
- ImageButton.cs
- DataGridViewButtonColumn.cs
- ObjectDataSourceSelectingEventArgs.cs
- ObjectDataSourceStatusEventArgs.cs
- ConnectionProviderAttribute.cs
- ProjectedSlot.cs
- PerfCounters.cs
- Variant.cs
- HttpContextWrapper.cs
- GraphicsPathIterator.cs
- SystemThemeKey.cs
- PropertyItem.cs
- ReadOnlyMetadataCollection.cs
- StaticFileHandler.cs
- GlobalProxySelection.cs
- Vector3DCollection.cs
- ManualResetEvent.cs
- PtsContext.cs
- NestedContainer.cs
- ResourceDefaultValueAttribute.cs
- DataTrigger.cs
- GenericsInstances.cs
- DateTimeOffsetConverter.cs
- MarkupCompiler.cs
- LoginNameDesigner.cs
- HttpDigestClientCredential.cs
- ZipIOBlockManager.cs
- CustomErrorCollection.cs
- ClipboardProcessor.cs
- TreeWalker.cs
- ElementNotEnabledException.cs
- TextEndOfSegment.cs
- AccessDataSourceView.cs
- RtfControls.cs
- TraceShell.cs
- _SslStream.cs
- WhitespaceRuleReader.cs
- RightsManagementEncryptedStream.cs
- GrammarBuilderRuleRef.cs
- CreateParams.cs
- TimersDescriptionAttribute.cs
- FontStyles.cs
- ResourcesBuildProvider.cs
- ManagedWndProcTracker.cs
- XmlSerializableReader.cs
- Token.cs
- Panel.cs
- PassportAuthentication.cs
- DbConnectionPool.cs