Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / ndp / fx / src / xsp / System / Web / Configuration / TransformerInfo.cs / 2 / TransformerInfo.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Configuration { using System; using System.Configuration; using System.Collections; using System.Collections.Specialized; using System.Security.Principal; using System.Web; using System.Web.Compilation; using System.Web.Configuration; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.Util; using System.Xml; using System.Security.Permissions; [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class TransformerInfo : ConfigurationElement { private static ConfigurationPropertyCollection _properties; private static readonly ConfigurationProperty _propName = new ConfigurationProperty("name", 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 TransformerInfo() { _properties = new ConfigurationPropertyCollection(); _properties.Add(_propName); _properties.Add(_propType); } internal TransformerInfo() { } public TransformerInfo(string name, string type) : this() { Name = name; Type = type; } [ConfigurationProperty("name", IsRequired = true, DefaultValue = "", IsKey = true)] [StringValidator(MinLength = 1)] public string Name { get { return (string)base[_propName]; } set { base[_propName] = value; } } ///protected override ConfigurationPropertyCollection Properties { get { return _properties; } } [ConfigurationProperty("type", IsRequired = true, DefaultValue = "")] [StringValidator(MinLength = 1)] public string Type { get { return (string)base[_propType]; } set { base[_propType] = value; } } /// public override bool Equals(object o) { if (o == this) { return true; } TransformerInfo ti = o as TransformerInfo; return StringUtil.Equals(Name, ti.Name) && StringUtil.Equals(Type, ti.Type); } /// public override int GetHashCode() { return Name.GetHashCode() ^ Type.GetHashCode(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Configuration { using System; using System.Configuration; using System.Collections; using System.Collections.Specialized; using System.Security.Principal; using System.Web; using System.Web.Compilation; using System.Web.Configuration; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.Util; using System.Xml; using System.Security.Permissions; [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class TransformerInfo : ConfigurationElement { private static ConfigurationPropertyCollection _properties; private static readonly ConfigurationProperty _propName = new ConfigurationProperty("name", 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 TransformerInfo() { _properties = new ConfigurationPropertyCollection(); _properties.Add(_propName); _properties.Add(_propType); } internal TransformerInfo() { } public TransformerInfo(string name, string type) : this() { Name = name; Type = type; } [ConfigurationProperty("name", IsRequired = true, DefaultValue = "", IsKey = true)] [StringValidator(MinLength = 1)] public string Name { get { return (string)base[_propName]; } set { base[_propName] = value; } } ///protected override ConfigurationPropertyCollection Properties { get { return _properties; } } [ConfigurationProperty("type", IsRequired = true, DefaultValue = "")] [StringValidator(MinLength = 1)] public string Type { get { return (string)base[_propType]; } set { base[_propType] = value; } } /// public override bool Equals(object o) { if (o == this) { return true; } TransformerInfo ti = o as TransformerInfo; return StringUtil.Equals(Name, ti.Name) && StringUtil.Equals(Type, ti.Type); } /// public override int GetHashCode() { return Name.GetHashCode() ^ Type.GetHashCode(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MobileComponentEditorPage.cs
- Label.cs
- NotSupportedException.cs
- Rotation3D.cs
- SafeCryptContextHandle.cs
- ReliableSessionBindingElement.cs
- UnsafeNativeMethods.cs
- TableLayoutColumnStyleCollection.cs
- LineGeometry.cs
- Validator.cs
- UriTemplateClientFormatter.cs
- ContractUtils.cs
- MouseDevice.cs
- HttpServerVarsCollection.cs
- HandleTable.cs
- Types.cs
- ProcessHost.cs
- MarginCollapsingState.cs
- DataGridParentRows.cs
- HostingEnvironment.cs
- StateFinalizationDesigner.cs
- UpdateCommandGenerator.cs
- Matrix3DConverter.cs
- SaveLedgerEntryRequest.cs
- ProfilePropertyNameValidator.cs
- DrawToolTipEventArgs.cs
- DataSourceCacheDurationConverter.cs
- ViewGenerator.cs
- MessageOperationFormatter.cs
- BuildDependencySet.cs
- Win32.cs
- ResourceManager.cs
- Quaternion.cs
- SimpleTypeResolver.cs
- MailMessageEventArgs.cs
- CustomLineCap.cs
- DecimalConstantAttribute.cs
- ListDictionaryInternal.cs
- FontStyles.cs
- XmlSchemaSimpleContentExtension.cs
- WinEventWrap.cs
- RuleSettings.cs
- RouteParametersHelper.cs
- ReflectEventDescriptor.cs
- DataFormats.cs
- ObjectQueryExecutionPlan.cs
- LinqExpressionNormalizer.cs
- ContextDataSourceView.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- PermissionRequestEvidence.cs
- ThemeableAttribute.cs
- Typography.cs
- ArgumentException.cs
- GPRECT.cs
- MessageSecurityOverTcp.cs
- GACMembershipCondition.cs
- EntityKey.cs
- ConnectorSelectionGlyph.cs
- DataGridViewRowCollection.cs
- XPathScanner.cs
- NavigationHelper.cs
- MulticastOption.cs
- NestedContainer.cs
- BrowserInteropHelper.cs
- PreApplicationStartMethodAttribute.cs
- EdmToObjectNamespaceMap.cs
- RegexBoyerMoore.cs
- WbemProvider.cs
- NavigationProperty.cs
- ArcSegment.cs
- ParameterRefs.cs
- RequestCacheManager.cs
- RadioButton.cs
- EventHandlerService.cs
- SerializableTypeCodeDomSerializer.cs
- ScrollBar.cs
- UpdateCompiler.cs
- DeviceContext.cs
- QuadraticEase.cs
- PieceDirectory.cs
- UrlMapping.cs
- RelationshipFixer.cs
- RelationalExpressions.cs
- TemplateColumn.cs
- HelpKeywordAttribute.cs
- StreamUpgradeInitiator.cs
- Int32.cs
- LiteralDesigner.cs
- SqlDataSourceCache.cs
- OpCodes.cs
- StyleBamlRecordReader.cs
- WebPageTraceListener.cs
- ServerIdentity.cs
- PasswordBoxAutomationPeer.cs
- WebSysDefaultValueAttribute.cs
- OleDbInfoMessageEvent.cs
- DesignerView.xaml.cs
- HostingEnvironmentWrapper.cs
- NavigationFailedEventArgs.cs
- ProfileService.cs