Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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(); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SectionInput.cs
- DNS.cs
- GridItemProviderWrapper.cs
- UseLicense.cs
- UnaryExpressionHelper.cs
- SpeechSeg.cs
- ReverseInheritProperty.cs
- ModuleBuilder.cs
- NativeMethods.cs
- LayoutInformation.cs
- Stopwatch.cs
- SqlConnectionFactory.cs
- CanonicalFontFamilyReference.cs
- RuntimeCompatibilityAttribute.cs
- LocalFileSettingsProvider.cs
- exports.cs
- DesignerForm.cs
- XmlLanguage.cs
- SaveFileDialog.cs
- CalendarDay.cs
- XmlCodeExporter.cs
- Substitution.cs
- TextInfo.cs
- ResXResourceReader.cs
- BlurBitmapEffect.cs
- DependencyPropertyAttribute.cs
- SafeNativeMethods.cs
- MemoryPressure.cs
- UnsignedPublishLicense.cs
- ToolStripScrollButton.cs
- GrammarBuilderRuleRef.cs
- EntityDataSourceDataSelection.cs
- DataServiceException.cs
- ModifierKeysConverter.cs
- AnnotationMap.cs
- DateTimeOffset.cs
- DataGridCommandEventArgs.cs
- TextBoxBase.cs
- AbandonedMutexException.cs
- UrlPath.cs
- CacheRequest.cs
- PreloadHost.cs
- FilterQuery.cs
- BitmapCodecInfoInternal.cs
- SerialReceived.cs
- WebPartExportVerb.cs
- GeneralTransformGroup.cs
- CustomValidator.cs
- ControlPropertyNameConverter.cs
- ButtonBaseAutomationPeer.cs
- GAC.cs
- TypeDependencyAttribute.cs
- cookie.cs
- WebBaseEventKeyComparer.cs
- WorkflowQueueInfo.cs
- ButtonColumn.cs
- RequestQueue.cs
- StrokeNodeOperations.cs
- PbrsForward.cs
- DataGridLinkButton.cs
- FixedElement.cs
- PeerIPHelper.cs
- CheckBoxRenderer.cs
- Visitors.cs
- ResourceWriter.cs
- Message.cs
- ConfigsHelper.cs
- AttributeUsageAttribute.cs
- ReaderWriterLock.cs
- RelationshipDetailsCollection.cs
- DeviceFilterEditorDialog.cs
- ObjectMemberMapping.cs
- DecoderFallback.cs
- SqlFlattener.cs
- PublisherIdentityPermission.cs
- cookieexception.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- SecurityKeyIdentifierClause.cs
- DataRow.cs
- TextEffectCollection.cs
- ListBindingHelper.cs
- PenLineJoinValidation.cs
- Registration.cs
- IxmlLineInfo.cs
- EditorZoneDesigner.cs
- DeviceSpecificDesigner.cs
- SortKey.cs
- HyperLinkStyle.cs
- Array.cs
- ReturnEventArgs.cs
- FilterElement.cs
- VectorAnimationUsingKeyFrames.cs
- Vector3DCollection.cs
- OneWayElement.cs
- EditingCoordinator.cs
- printdlgexmarshaler.cs
- ControllableStoryboardAction.cs
- AttributeConverter.cs
- MemberAccessException.cs
- SmiXetterAccessMap.cs