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;
///
/// Allows a control to specify a custom object
/// for building that control within the ASP.NET parser.
///
[AttributeUsage(AttributeTargets.Class)]
public sealed class ControlBuilderAttribute : Attribute {
///
///
/// The default object is a
/// builder. This field is read-only.
///
public static readonly ControlBuilderAttribute Default = new ControlBuilderAttribute(null);
private Type builderType = null;
///
///
public ControlBuilderAttribute(Type builderType) {
this.builderType = builderType;
}
///
/// Indicates XXX. This property is read-only.
///
public Type BuilderType {
get {
return builderType;
}
}
///
///
/// [To be supplied.]
///
public override int GetHashCode() {
return ((BuilderType != null) ? BuilderType.GetHashCode() : 0);
}
///
///
///
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;
///
/// Allows a control to specify a custom object
/// for building that control within the ASP.NET parser.
///
[AttributeUsage(AttributeTargets.Class)]
public sealed class ControlBuilderAttribute : Attribute {
///
///
/// The default object is a
/// builder. This field is read-only.
///
public static readonly ControlBuilderAttribute Default = new ControlBuilderAttribute(null);
private Type builderType = null;
///
///
public ControlBuilderAttribute(Type builderType) {
this.builderType = builderType;
}
///
/// Indicates XXX. This property is read-only.
///
public Type BuilderType {
get {
return builderType;
}
}
///
///
/// [To be supplied.]
///
public override int GetHashCode() {
return ((BuilderType != null) ? BuilderType.GetHashCode() : 0);
}
///
///
///
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
- DispatchChannelSink.cs
- ViewCellSlot.cs
- AmbientEnvironment.cs
- BaseProcessor.cs
- DoubleAnimationClockResource.cs
- CommandID.cs
- XmlBufferReader.cs
- ClickablePoint.cs
- TextStore.cs
- Delegate.cs
- QueryExpr.cs
- ToolStripDropDownClosingEventArgs.cs
- FragmentQuery.cs
- ListBox.cs
- ObjectListDataBindEventArgs.cs
- StyleSheetRefUrlEditor.cs
- WindowsListViewItemCheckBox.cs
- ToolStripRenderEventArgs.cs
- RecordConverter.cs
- CodeAttributeDeclarationCollection.cs
- UnmanagedMemoryStream.cs
- SimpleType.cs
- FixedHyperLink.cs
- TextTrailingWordEllipsis.cs
- contentDescriptor.cs
- DockAndAnchorLayout.cs
- TemplatedAdorner.cs
- InternalsVisibleToAttribute.cs
- DesignSurfaceManager.cs
- DeferredSelectedIndexReference.cs
- FormParameter.cs
- CommonObjectSecurity.cs
- HijriCalendar.cs
- NavigatorInput.cs
- WorkflowViewManager.cs
- RSAProtectedConfigurationProvider.cs
- ProcessHostServerConfig.cs
- AttributeSetAction.cs
- OdbcConnectionPoolProviderInfo.cs
- ListChangedEventArgs.cs
- DocumentPageView.cs
- HttpHeaderCollection.cs
- DiscoveryVersionConverter.cs
- ToolBarTray.cs
- SmiRecordBuffer.cs
- FunctionImportElement.cs
- UDPClient.cs
- Request.cs
- UInt64.cs
- ParameterCollectionEditor.cs
- MobileUITypeEditor.cs
- SqlTypeConverter.cs
- MembershipSection.cs
- UniformGrid.cs
- PreApplicationStartMethodAttribute.cs
- Attachment.cs
- WorkflowOperationBehavior.cs
- AuthenticationServiceManager.cs
- SelectiveScrollingGrid.cs
- AppDomainManager.cs
- oledbconnectionstring.cs
- SqlCacheDependencySection.cs
- DataGridViewSelectedColumnCollection.cs
- QilReplaceVisitor.cs
- TableLayoutPanelCellPosition.cs
- PipelineModuleStepContainer.cs
- XPathDocumentNavigator.cs
- invalidudtexception.cs
- RoutingBehavior.cs
- DbConnectionPoolCounters.cs
- DownloadProgressEventArgs.cs
- PropertyTabAttribute.cs
- ClaimTypeRequirement.cs
- ReaderWriterLockWrapper.cs
- InputElement.cs
- Variant.cs
- GlobalizationAssembly.cs
- FixedPageAutomationPeer.cs
- Property.cs
- UnSafeCharBuffer.cs
- ReflectionUtil.cs
- MatrixTransform.cs
- DataGridViewCellStateChangedEventArgs.cs
- PcmConverter.cs
- shaperfactoryquerycacheentry.cs
- Int16KeyFrameCollection.cs
- DictionaryEntry.cs
- IndependentlyAnimatedPropertyMetadata.cs
- CodeGen.cs
- EventData.cs
- DialogDivider.cs
- ConditionCollection.cs
- __Error.cs
- DataMisalignedException.cs
- InputProcessorProfiles.cs
- ConstrainedGroup.cs
- TextEndOfParagraph.cs
- XmlSerializerSection.cs
- EntityDesignerDataSourceView.cs
- TextTabProperties.cs