Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / CompMod / System / ComponentModel / DefaultPropertyAttribute.cs / 1 / DefaultPropertyAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel { using System; using System.Diagnostics; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.Class)] public sealed class DefaultPropertyAttribute : Attribute { ///Specifies the default property for a component. ////// This is the default event name. /// private readonly string name; ////// public DefaultPropertyAttribute(string name) { this.name = name; } ////// Initializes a new instance of /// the ///class. /// /// public string Name { get { return name; } } ////// Gets the name of the default property for the component this attribute is /// bound to. /// ////// public static readonly DefaultPropertyAttribute Default = new DefaultPropertyAttribute(null); public override bool Equals(object obj) { DefaultPropertyAttribute other = obj as DefaultPropertyAttribute; return (other != null) && other.Name == name; } public override int GetHashCode() { return base.GetHashCode(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// Specifies the default value for the ///, which is . This /// field is read-only. /// // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel { using System; using System.Diagnostics; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.Class)] public sealed class DefaultPropertyAttribute : Attribute { ///Specifies the default property for a component. ////// This is the default event name. /// private readonly string name; ////// public DefaultPropertyAttribute(string name) { this.name = name; } ////// Initializes a new instance of /// the ///class. /// /// public string Name { get { return name; } } ////// Gets the name of the default property for the component this attribute is /// bound to. /// ////// public static readonly DefaultPropertyAttribute Default = new DefaultPropertyAttribute(null); public override bool Equals(object obj) { DefaultPropertyAttribute other = obj as DefaultPropertyAttribute; return (other != null) && other.Name == name; } public override int GetHashCode() { return base.GetHashCode(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// Specifies the default value for the ///, which is . This /// field is read-only. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlSchemaAttribute.cs
- HtmlInputImage.cs
- Variant.cs
- BookmarkScopeHandle.cs
- TextTreeObjectNode.cs
- DescendentsWalkerBase.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- ControlCachePolicy.cs
- ProcessProtocolHandler.cs
- HijriCalendar.cs
- KeyValuePairs.cs
- PeerOutputChannel.cs
- MergePropertyDescriptor.cs
- DoneReceivingAsyncResult.cs
- StrokeSerializer.cs
- HwndHostAutomationPeer.cs
- StickyNoteContentControl.cs
- TimeSpanStorage.cs
- BamlResourceContent.cs
- MemoryMappedFileSecurity.cs
- RecordBuilder.cs
- Operand.cs
- StateMachineHistory.cs
- IListConverters.cs
- SqlDependencyListener.cs
- QuaternionKeyFrameCollection.cs
- HeaderedContentControl.cs
- TreeNodeConverter.cs
- MetabaseSettings.cs
- OrderedDictionary.cs
- ProcessHostConfigUtils.cs
- StorageModelBuildProvider.cs
- ReversePositionQuery.cs
- RawTextInputReport.cs
- HttpHandlerAction.cs
- ToolStripPanel.cs
- XmlILModule.cs
- DesignerAttribute.cs
- MaskedTextProvider.cs
- TextSchema.cs
- TrackingProfile.cs
- Activator.cs
- MenuItem.cs
- LocalizationParserHooks.cs
- XmlSchemaAnnotation.cs
- OleDbMetaDataFactory.cs
- ProfileEventArgs.cs
- BitmapEffectGroup.cs
- DesignColumn.cs
- ClassicBorderDecorator.cs
- OleDbRowUpdatingEvent.cs
- OracleCommandSet.cs
- SvcMapFileSerializer.cs
- DNS.cs
- FontFamily.cs
- CatalogZone.cs
- WebServiceBindingAttribute.cs
- TextBox.cs
- InvalidFilterCriteriaException.cs
- WebRequestModuleElement.cs
- EventWaitHandle.cs
- DrawingVisual.cs
- EventBuilder.cs
- IChannel.cs
- PriorityRange.cs
- RegionIterator.cs
- ContractMethodInfo.cs
- SchemaManager.cs
- FileLevelControlBuilderAttribute.cs
- CollectionViewGroup.cs
- TransactionFilter.cs
- Vector3DCollectionConverter.cs
- __ConsoleStream.cs
- DataSourceSelectArguments.cs
- SctClaimSerializer.cs
- ActivityMarkupSerializationProvider.cs
- HeaderedItemsControl.cs
- Empty.cs
- ASCIIEncoding.cs
- PathParser.cs
- CompModSwitches.cs
- ObjectDataProvider.cs
- PinnedBufferMemoryStream.cs
- MessageQueueEnumerator.cs
- SerializerProvider.cs
- PageParserFilter.cs
- SiteMap.cs
- NetTcpBindingCollectionElement.cs
- Contracts.cs
- WebEventCodes.cs
- AdornerHitTestResult.cs
- FormatConvertedBitmap.cs
- ThrowHelper.cs
- ScaleTransform3D.cs
- DecimalFormatter.cs
- RuntimeConfig.cs
- _PooledStream.cs
- TrustManager.cs
- TimeSpan.cs
- HandoffBehavior.cs