Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / InstallerTypeAttribute.cs / 1305376 / InstallerTypeAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ // SECREVIEW: Remove this attribute once bug#411889 is fixed. [assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2113:SecureLateBindingMethods", Scope="member", Target="System.ComponentModel.InstallerTypeAttribute.get_InstallerType():System.Type")] namespace System.ComponentModel { using System.Diagnostics; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.Class)] public class InstallerTypeAttribute : Attribute { string _typeName; ///Specifies the installer /// to use for a type to install components. ////// public InstallerTypeAttribute(Type installerType) { _typeName = installerType.AssemblyQualifiedName; } ///Initializes a new instance of the System.Windows.Forms.ComponentModel.InstallerTypeAttribute class. ////// public InstallerTypeAttribute(string typeName) { _typeName = typeName; } ///[To be supplied.] ////// public virtual Type InstallerType { get { return Type.GetType(_typeName); } } public override bool Equals(object obj) { if (obj == this) { return true; } InstallerTypeAttribute other = obj as InstallerTypeAttribute; return (other != null) && other._typeName == _typeName; } public override int GetHashCode() { return base.GetHashCode(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //Gets the /// type of installer associated with this attribute. ///// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ // SECREVIEW: Remove this attribute once bug#411889 is fixed. [assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2113:SecureLateBindingMethods", Scope="member", Target="System.ComponentModel.InstallerTypeAttribute.get_InstallerType():System.Type")] namespace System.ComponentModel { using System.Diagnostics; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.Class)] public class InstallerTypeAttribute : Attribute { string _typeName; ///Specifies the installer /// to use for a type to install components. ////// public InstallerTypeAttribute(Type installerType) { _typeName = installerType.AssemblyQualifiedName; } ///Initializes a new instance of the System.Windows.Forms.ComponentModel.InstallerTypeAttribute class. ////// public InstallerTypeAttribute(string typeName) { _typeName = typeName; } ///[To be supplied.] ////// public virtual Type InstallerType { get { return Type.GetType(_typeName); } } public override bool Equals(object obj) { if (obj == this) { return true; } InstallerTypeAttribute other = obj as InstallerTypeAttribute; return (other != null) && other._typeName == _typeName; } public override int GetHashCode() { return base.GetHashCode(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.Gets the /// type of installer associated with this attribute. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WindowsStatic.cs
- Inline.cs
- VectorCollectionValueSerializer.cs
- XsltOutput.cs
- UnsafeNativeMethods.cs
- DesignerAttribute.cs
- XpsResource.cs
- HyperlinkAutomationPeer.cs
- DbConnectionOptions.cs
- EventPropertyMap.cs
- Atom10FormatterFactory.cs
- BitmapInitialize.cs
- EntityViewGenerator.cs
- Base64Encoding.cs
- DummyDataSource.cs
- MemberAccessException.cs
- HttpConfigurationContext.cs
- SQLInt16.cs
- XmlUtil.cs
- OutputCacheSection.cs
- StringFunctions.cs
- BooleanFunctions.cs
- EntityDataSourceViewSchema.cs
- ListDesigner.cs
- UIElementParagraph.cs
- codemethodreferenceexpression.cs
- EventBuilder.cs
- TextEncodedRawTextWriter.cs
- GridViewSortEventArgs.cs
- AbstractExpressions.cs
- VectorAnimationUsingKeyFrames.cs
- XmlSchemaChoice.cs
- CollectionConverter.cs
- EntryPointNotFoundException.cs
- DrawToolTipEventArgs.cs
- DesignerLoader.cs
- EditorAttribute.cs
- TextBox.cs
- DataGridViewRowPostPaintEventArgs.cs
- ActiveDocumentEvent.cs
- UnsafeNativeMethods.cs
- ContainerControlDesigner.cs
- DefaultParameterValueAttribute.cs
- SqlConnectionStringBuilder.cs
- ProxyFragment.cs
- TransportSecurityHelpers.cs
- HyperLinkColumn.cs
- ModelProperty.cs
- InspectionWorker.cs
- LateBoundChannelParameterCollection.cs
- OleServicesContext.cs
- UpWmlPageAdapter.cs
- ExtensionQuery.cs
- PolicyFactory.cs
- GlyphCache.cs
- coordinatorscratchpad.cs
- UITypeEditor.cs
- UserInitiatedNavigationPermission.cs
- RijndaelManaged.cs
- Point3D.cs
- MessageProperties.cs
- PackageRelationship.cs
- GatewayDefinition.cs
- FormViewModeEventArgs.cs
- XmlSchemaObjectTable.cs
- ExpressionBuilderContext.cs
- ByteAnimationBase.cs
- WebPartConnectionsConnectVerb.cs
- NotifyParentPropertyAttribute.cs
- TemplateKey.cs
- KeySplineConverter.cs
- AnonymousIdentificationModule.cs
- BulletedListEventArgs.cs
- EDesignUtil.cs
- ButtonBaseAutomationPeer.cs
- PackagingUtilities.cs
- SafeViewOfFileHandle.cs
- StateManagedCollection.cs
- SchemaImporter.cs
- CommandBindingCollection.cs
- QilList.cs
- InputProcessorProfiles.cs
- VideoDrawing.cs
- QilTargetType.cs
- LinkedResourceCollection.cs
- TextRangeSerialization.cs
- InternalControlCollection.cs
- Hex.cs
- CompoundFileReference.cs
- MappingMetadataHelper.cs
- AudioFormatConverter.cs
- PageWrapper.cs
- FileSystemInfo.cs
- __ComObject.cs
- BinaryWriter.cs
- TcpClientSocketManager.cs
- NetDataContractSerializer.cs
- NativeMethods.cs
- PartBasedPackageProperties.cs
- WmpBitmapDecoder.cs