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
- IdentityReference.cs
- DrawingState.cs
- XmlDictionaryReaderQuotas.cs
- COM2PictureConverter.cs
- ISCIIEncoding.cs
- precedingquery.cs
- mongolianshape.cs
- SchemaTableOptionalColumn.cs
- TemplateComponentConnector.cs
- WindowsAuthenticationEventArgs.cs
- PageCopyCount.cs
- AttributeProviderAttribute.cs
- CompressStream.cs
- FontSizeConverter.cs
- SplitterCancelEvent.cs
- BoundColumn.cs
- ConnectionStringsExpressionBuilder.cs
- DesignerDataView.cs
- NativeMethodsOther.cs
- ContainerAction.cs
- FixedPosition.cs
- ArcSegment.cs
- MarkupProperty.cs
- WrappedKeySecurityToken.cs
- UseLicense.cs
- MasterPage.cs
- HttpCookiesSection.cs
- AutomationPatternInfo.cs
- CFStream.cs
- Activity.cs
- HorizontalAlignConverter.cs
- ButtonBase.cs
- SqlParameter.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- TreeView.cs
- FontStretch.cs
- peersecurityelement.cs
- XmlWhitespace.cs
- PreservationFileWriter.cs
- ValueTypeFixupInfo.cs
- GridItemProviderWrapper.cs
- ListMarkerSourceInfo.cs
- TreeWalkHelper.cs
- StringAttributeCollection.cs
- SystemGatewayIPAddressInformation.cs
- PageTheme.cs
- DataGridItemEventArgs.cs
- WindowsFormsSectionHandler.cs
- DoubleCollection.cs
- GridItemProviderWrapper.cs
- HyperLinkColumn.cs
- CopyOnWriteList.cs
- XmlBinaryReader.cs
- Pens.cs
- AutomationPeer.cs
- EditorOptionAttribute.cs
- WindowsSecurityTokenAuthenticator.cs
- StreamedFramingRequestChannel.cs
- TypeConvertions.cs
- ThousandthOfEmRealDoubles.cs
- SourceFilter.cs
- UriTemplatePathPartiallyEquivalentSet.cs
- Bold.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- ApplicationGesture.cs
- DeclaredTypeElementCollection.cs
- DiffuseMaterial.cs
- XmlSchemaParticle.cs
- SecurityDescriptor.cs
- Fonts.cs
- SoapFault.cs
- SiteMapPath.cs
- FileRegion.cs
- DataControlField.cs
- CatalogPartChrome.cs
- CodeArgumentReferenceExpression.cs
- UInt32.cs
- NativeCppClassAttribute.cs
- CompilerScopeManager.cs
- TagPrefixCollection.cs
- DbMetaDataFactory.cs
- SqlBuilder.cs
- WindowsContainer.cs
- ToolStripSystemRenderer.cs
- _NestedSingleAsyncResult.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- AssemblyAttributesGoHere.cs
- CompoundFileStreamReference.cs
- ObjectDataSourceMethodEventArgs.cs
- CodeSnippetExpression.cs
- Classification.cs
- SecurityKeyUsage.cs
- HttpClientCredentialType.cs
- DataTableTypeConverter.cs
- PointCollectionConverter.cs
- PointValueSerializer.cs
- D3DImage.cs
- Delay.cs
- SoapServerMessage.cs
- EntityDataSourceDesigner.cs