Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / CompMod / System / ComponentModel / InstallerTypeAttribute.cs / 1 / 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
- XNameConverter.cs
- _ListenerRequestStream.cs
- IndependentAnimationStorage.cs
- AVElementHelper.cs
- DataSpaceManager.cs
- AssemblyNameProxy.cs
- SqlConnection.cs
- Instrumentation.cs
- SQLDoubleStorage.cs
- HotCommands.cs
- DynamicDataResources.Designer.cs
- DependencyPropertyHelper.cs
- DropDownHolder.cs
- SystemIPv4InterfaceProperties.cs
- CodeBlockBuilder.cs
- BasicExpandProvider.cs
- GlyphTypeface.cs
- ZipIOCentralDirectoryBlock.cs
- HtmlControlDesigner.cs
- DesignTimeType.cs
- Attributes.cs
- IPEndPoint.cs
- MethodExpression.cs
- XmlEncodedRawTextWriter.cs
- StorageBasedPackageProperties.cs
- Matrix3D.cs
- DataFieldConverter.cs
- BaseCollection.cs
- GZipStream.cs
- PolicyUtility.cs
- ModelTypeConverter.cs
- DataGridViewCellCancelEventArgs.cs
- DescendantQuery.cs
- RegexStringValidator.cs
- GroupAggregateExpr.cs
- WindowsFormsHelpers.cs
- MonthCalendar.cs
- PageRequestManager.cs
- RangeValueProviderWrapper.cs
- MDIControlStrip.cs
- URLAttribute.cs
- Rectangle.cs
- OleDbDataReader.cs
- SchemaContext.cs
- MonitoringDescriptionAttribute.cs
- TextRange.cs
- SessionParameter.cs
- RepeaterItemCollection.cs
- SqlUtil.cs
- OperationCanceledException.cs
- SapiInterop.cs
- ExecutedRoutedEventArgs.cs
- TableLayoutStyle.cs
- DbConnectionOptions.cs
- XmlBinaryReader.cs
- ClientConfigPaths.cs
- TransformDescriptor.cs
- LogLogRecordHeader.cs
- ClientBuildManager.cs
- TextEditorLists.cs
- DrawingAttributeSerializer.cs
- XDeferredAxisSource.cs
- TransformedBitmap.cs
- SafeLibraryHandle.cs
- EntityContainerAssociationSet.cs
- TextServicesCompartmentContext.cs
- GPRECT.cs
- StrokeNodeOperations2.cs
- InstanceLockException.cs
- CryptoProvider.cs
- XmlBindingWorker.cs
- AssociationType.cs
- Condition.cs
- PackageFilter.cs
- ExecutedRoutedEventArgs.cs
- ApplyImportsAction.cs
- NavigationWindow.cs
- SmiSettersStream.cs
- ReliableInputConnection.cs
- HttpModuleCollection.cs
- GuidConverter.cs
- Debug.cs
- SequenceNumber.cs
- ReadOnlyHierarchicalDataSource.cs
- Invariant.cs
- AsymmetricAlgorithm.cs
- PathGeometry.cs
- versioninfo.cs
- QuadraticBezierSegment.cs
- ExpressionBinding.cs
- GlobalAclOperationRequirement.cs
- ChainOfDependencies.cs
- SafeHandle.cs
- RetrieveVirtualItemEventArgs.cs
- CodeStatementCollection.cs
- Overlapped.cs
- IntSecurity.cs
- RequestTimeoutManager.cs
- XmlRootAttribute.cs
- InvalidPrinterException.cs