Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / ControlBuilderAttribute.cs / 1305376 / ControlBuilderAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Web.UI { using System; using System.ComponentModel; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.Class)] public sealed class ControlBuilderAttribute : Attribute { ///Allows a control to specify a custom ///object /// for building that control within the ASP.NET parser. /// /// public static readonly ControlBuilderAttribute Default = new ControlBuilderAttribute(null); private Type builderType = null; ///The default ///object is a /// builder. This field is read-only. /// public ControlBuilderAttribute(Type builderType) { this.builderType = builderType; } ////// public Type BuilderType { get { return builderType; } } ///Indicates XXX. This property is read-only. ////// /// public override int GetHashCode() { return ((BuilderType != null) ? BuilderType.GetHashCode() : 0); } ///[To be supplied.] ////// /// public override bool Equals(object obj) { if (obj == this) { return true; } if ((obj != null) && (obj is ControlBuilderAttribute)) { return((ControlBuilderAttribute)obj).BuilderType == builderType; } return false; } ////// ///public override bool IsDefaultAttribute() { return this.Equals(Default); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Web.UI { using System; using System.ComponentModel; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.Class)] public sealed class ControlBuilderAttribute : Attribute { ///Allows a control to specify a custom ///object /// for building that control within the ASP.NET parser. /// /// public static readonly ControlBuilderAttribute Default = new ControlBuilderAttribute(null); private Type builderType = null; ///The default ///object is a /// builder. This field is read-only. /// public ControlBuilderAttribute(Type builderType) { this.builderType = builderType; } ////// public Type BuilderType { get { return builderType; } } ///Indicates XXX. This property is read-only. ////// /// public override int GetHashCode() { return ((BuilderType != null) ? BuilderType.GetHashCode() : 0); } ///[To be supplied.] ////// /// public override bool Equals(object obj) { if (obj == this) { return true; } if ((obj != null) && (obj is ControlBuilderAttribute)) { return((ControlBuilderAttribute)obj).BuilderType == builderType; } return false; } ////// ///public override bool IsDefaultAttribute() { return this.Equals(Default); } } } // 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
- Selection.cs
- arabicshape.cs
- CommandPlan.cs
- CharAnimationUsingKeyFrames.cs
- QuaternionRotation3D.cs
- Empty.cs
- Literal.cs
- FrameworkContentElement.cs
- WebReferencesBuildProvider.cs
- AttachedPropertyMethodSelector.cs
- OdbcConnectionString.cs
- TreeIterators.cs
- DataSourceHelper.cs
- FixedPosition.cs
- EncodingTable.cs
- SourceFileBuildProvider.cs
- ProcessInfo.cs
- NamedPermissionSet.cs
- DotExpr.cs
- BindMarkupExtensionSerializer.cs
- CookieProtection.cs
- TimeSpanOrInfiniteConverter.cs
- XmlAttributeOverrides.cs
- Serializer.cs
- PropertyEmitterBase.cs
- GeneralTransform.cs
- SerialErrors.cs
- GeneralTransform.cs
- TemplateBamlRecordReader.cs
- DurationConverter.cs
- ViewManagerAttribute.cs
- XmlStreamNodeWriter.cs
- AppDomainProtocolHandler.cs
- KeyTimeConverter.cs
- WebBrowserNavigatedEventHandler.cs
- ListSourceHelper.cs
- DesignerActionUIStateChangeEventArgs.cs
- EntityContainer.cs
- XmlReflectionImporter.cs
- BrushMappingModeValidation.cs
- ToolStripTemplateNode.cs
- TypedTableBaseExtensions.cs
- MatrixIndependentAnimationStorage.cs
- EditCommandColumn.cs
- TemporaryBitmapFile.cs
- __Error.cs
- CharacterBuffer.cs
- ContentValidator.cs
- WindowsSolidBrush.cs
- WebBrowser.cs
- CatalogZone.cs
- UserControlFileEditor.cs
- DecoderFallbackWithFailureFlag.cs
- X509SubjectKeyIdentifierClause.cs
- SelectionEditingBehavior.cs
- WindowCollection.cs
- CqlErrorHelper.cs
- PagesSection.cs
- StringFormat.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- ResolveMatchesMessage11.cs
- ThemeDirectoryCompiler.cs
- ObjectToken.cs
- NullableDecimalAverageAggregationOperator.cs
- TextDpi.cs
- InfoCardSymmetricAlgorithm.cs
- EditorZoneBase.cs
- EventArgs.cs
- FilterUserControlBase.cs
- DesignerRegion.cs
- CodeCatchClauseCollection.cs
- PointCollection.cs
- GenericEnumerator.cs
- ipaddressinformationcollection.cs
- CompiledQueryCacheKey.cs
- FullTextState.cs
- EnterpriseServicesHelper.cs
- CommandDevice.cs
- LostFocusEventManager.cs
- ResourceDefaultValueAttribute.cs
- DPTypeDescriptorContext.cs
- TimersDescriptionAttribute.cs
- LabelLiteral.cs
- XmlQueryStaticData.cs
- HotCommands.cs
- CodeAttributeDeclaration.cs
- MonitoringDescriptionAttribute.cs
- MultiView.cs
- XmlSchemaAttributeGroupRef.cs
- ListBindableAttribute.cs
- Utils.cs
- DataGridTextBox.cs
- ExtenderProvidedPropertyAttribute.cs
- RelativeSource.cs
- Script.cs
- XPathAncestorIterator.cs
- ColorTransform.cs
- CharacterString.cs
- RunClient.cs
- AddInEnvironment.cs