Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / xsp / System / Web / Configuration / TransformerInfo.cs / 1 / 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. // //----------------------------------------------------------------------------- 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- X509RawDataKeyIdentifierClause.cs
- GeneralTransform3D.cs
- HttpCapabilitiesEvaluator.cs
- EventSource.cs
- ServiceOperation.cs
- FileSecurity.cs
- MatrixAnimationUsingKeyFrames.cs
- ClientUtils.cs
- OrthographicCamera.cs
- CodeValidator.cs
- QualificationDataAttribute.cs
- DecoderNLS.cs
- SmiRequestExecutor.cs
- TextSelectionProcessor.cs
- GlyphTypeface.cs
- XmlAnyAttributeAttribute.cs
- ReferentialConstraintRoleElement.cs
- coordinatorfactory.cs
- RowType.cs
- IncrementalReadDecoders.cs
- wgx_sdk_version.cs
- EdmProviderManifest.cs
- ThrowHelper.cs
- sqlcontext.cs
- WindowsTooltip.cs
- EllipseGeometry.cs
- RectConverter.cs
- HttpModuleAction.cs
- PageTheme.cs
- Vector3DValueSerializer.cs
- httpapplicationstate.cs
- RoleManagerSection.cs
- Animatable.cs
- EmptyQuery.cs
- ReflectionUtil.cs
- ArrayList.cs
- ArrayItemReference.cs
- Type.cs
- LocalValueEnumerator.cs
- QueryInterceptorAttribute.cs
- XamlSerializerUtil.cs
- SqlProcedureAttribute.cs
- Font.cs
- ModelVisual3D.cs
- EntityPropertyMappingAttribute.cs
- StandardBindingCollectionElement.cs
- SkipStoryboardToFill.cs
- xmlsaver.cs
- SoapCodeExporter.cs
- DES.cs
- UserControlCodeDomTreeGenerator.cs
- ProcessProtocolHandler.cs
- WriterOutput.cs
- InvalidProgramException.cs
- HtmlDocument.cs
- Hex.cs
- SmtpClient.cs
- ListBoxAutomationPeer.cs
- DataListCommandEventArgs.cs
- DecoderFallbackWithFailureFlag.cs
- GridItemPattern.cs
- ListBox.cs
- COM2TypeInfoProcessor.cs
- HttpStreamXmlDictionaryReader.cs
- DataGridViewSelectedCellCollection.cs
- ToolstripProfessionalRenderer.cs
- CachedTypeface.cs
- ToolStripButton.cs
- FigureParaClient.cs
- AlphaSortedEnumConverter.cs
- XmlBinaryReader.cs
- ViewGenResults.cs
- XmlSchemaValidationException.cs
- DrawingCollection.cs
- CorrelationManager.cs
- KoreanLunisolarCalendar.cs
- Scheduler.cs
- sqlnorm.cs
- TextEditorCharacters.cs
- WebBrowserEvent.cs
- ColumnHeaderConverter.cs
- HotSpotCollection.cs
- DynamicDiscoSearcher.cs
- LinqToSqlWrapper.cs
- ToRequest.cs
- ContainsRowNumberChecker.cs
- IncomingWebResponseContext.cs
- COM2PictureConverter.cs
- TreeNodeSelectionProcessor.cs
- LoginName.cs
- X509CertificateValidator.cs
- BitmapPalettes.cs
- SecurityElement.cs
- ColorConvertedBitmap.cs
- StylusCollection.cs
- InputReport.cs
- MessagingDescriptionAttribute.cs
- AssemblyInfo.cs
- RuleInfoComparer.cs
- Opcode.cs