Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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(); } } }/// 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
- KnownBoxes.cs
- XPathPatternParser.cs
- SID.cs
- ConfigurationLockCollection.cs
- errorpatternmatcher.cs
- ColorConverter.cs
- SafePointer.cs
- Accessible.cs
- ChoiceConverter.cs
- XmlTextReaderImpl.cs
- RuntimeHelpers.cs
- SoapSchemaExporter.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- AssemblyInfo.cs
- StylusTip.cs
- AttachedPropertyBrowsableAttribute.cs
- WindowsAuthenticationEventArgs.cs
- IgnoreFileBuildProvider.cs
- ActiveXHost.cs
- DispatchProxy.cs
- OleDbPermission.cs
- clipboard.cs
- TextEditorMouse.cs
- RawUIStateInputReport.cs
- AttributeEmitter.cs
- BmpBitmapDecoder.cs
- XmlIncludeAttribute.cs
- ScrollChangedEventArgs.cs
- Matrix3DConverter.cs
- BooleanKeyFrameCollection.cs
- AdministrationHelpers.cs
- DocumentGrid.cs
- SequenceNumber.cs
- TransformationRules.cs
- RelativeSource.cs
- ManipulationStartedEventArgs.cs
- ExpressionSelection.cs
- InputMethod.cs
- CompiledQuery.cs
- SapiRecoInterop.cs
- RuleInfoComparer.cs
- DeleteHelper.cs
- AQNBuilder.cs
- TaiwanLunisolarCalendar.cs
- XslTransform.cs
- ColumnWidthChangedEvent.cs
- PromptBuilder.cs
- LateBoundBitmapDecoder.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- EnterpriseServicesHelper.cs
- EntryPointNotFoundException.cs
- KeyToListMap.cs
- DataGridViewComboBoxEditingControl.cs
- ListControlStringCollectionEditor.cs
- ProfileModule.cs
- CodeTypeConstructor.cs
- CompositeControlDesigner.cs
- XmlNodeChangedEventManager.cs
- CreateUserErrorEventArgs.cs
- InlineObject.cs
- DtdParser.cs
- DelegatingTypeDescriptionProvider.cs
- COSERVERINFO.cs
- PlatformNotSupportedException.cs
- CompiledRegexRunnerFactory.cs
- VoiceInfo.cs
- invalidudtexception.cs
- WebRequest.cs
- SqlConnectionFactory.cs
- MatrixTransform.cs
- DataGridViewRowsAddedEventArgs.cs
- UdpTransportSettings.cs
- EdmEntityTypeAttribute.cs
- securestring.cs
- File.cs
- BamlLocalizer.cs
- AppDomainAttributes.cs
- VisualStyleElement.cs
- DbConnectionInternal.cs
- RSAPKCS1KeyExchangeFormatter.cs
- BitSet.cs
- LinkClickEvent.cs
- StoreUtilities.cs
- Screen.cs
- Stackframe.cs
- HttpHandlersSection.cs
- ProxyGenerationError.cs
- ToolBarButton.cs
- DirectionalLight.cs
- designeractionlistschangedeventargs.cs
- SemanticResultValue.cs
- FixedHighlight.cs
- DBConcurrencyException.cs
- LayoutEngine.cs
- DSACryptoServiceProvider.cs
- AutomationTextAttribute.cs
- CodeNamespaceCollection.cs
- DynamicDiscoSearcher.cs
- ListBoxItemAutomationPeer.cs
- IsolatedStorageFileStream.cs