Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Runtime / CompilerServices / InternalsVisibleToAttribute.cs / 1305376 / InternalsVisibleToAttribute.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== //------------------------------------------------------------------------------ //----------------------------------------------------------------------------- namespace System.Runtime.CompilerServices { using System; [AttributeUsage(AttributeTargets.Assembly, AllowMultiple=true, Inherited=false)] public sealed class InternalsVisibleToAttribute : Attribute { private string _assemblyName; private bool _allInternalsVisible = true; public InternalsVisibleToAttribute(string assemblyName) { this._assemblyName = assemblyName; } public string AssemblyName { get { return _assemblyName; } } public bool AllInternalsVisible { get { return _allInternalsVisible; } set { _allInternalsVisible = value; } } } ////// If AllInternalsVisible is not true for a friend assembly, the FriendAccessAllowed attribute /// indicates which internals are shared with that friend assembly. /// [AttributeUsage(AttributeTargets.Class | AttributeTargets.Constructor | AttributeTargets.Enum | AttributeTargets.Event | AttributeTargets.Field | AttributeTargets.Interface | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Struct, AllowMultiple = false, Inherited = false)] [FriendAccessAllowed] internal sealed class FriendAccessAllowedAttribute : Attribute { } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== //------------------------------------------------------------------------------ //----------------------------------------------------------------------------- namespace System.Runtime.CompilerServices { using System; [AttributeUsage(AttributeTargets.Assembly, AllowMultiple=true, Inherited=false)] public sealed class InternalsVisibleToAttribute : Attribute { private string _assemblyName; private bool _allInternalsVisible = true; public InternalsVisibleToAttribute(string assemblyName) { this._assemblyName = assemblyName; } public string AssemblyName { get { return _assemblyName; } } public bool AllInternalsVisible { get { return _allInternalsVisible; } set { _allInternalsVisible = value; } } } ////// If AllInternalsVisible is not true for a friend assembly, the FriendAccessAllowed attribute /// indicates which internals are shared with that friend assembly. /// [AttributeUsage(AttributeTargets.Class | AttributeTargets.Constructor | AttributeTargets.Enum | AttributeTargets.Event | AttributeTargets.Field | AttributeTargets.Interface | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Struct, AllowMultiple = false, Inherited = false)] [FriendAccessAllowed] internal sealed class FriendAccessAllowedAttribute : Attribute { } } // 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
- PostBackOptions.cs
- _ScatterGatherBuffers.cs
- StructuredType.cs
- TextServicesProperty.cs
- UIPropertyMetadata.cs
- dataobject.cs
- OleDbDataReader.cs
- OracleRowUpdatingEventArgs.cs
- WindowsRichEdit.cs
- XmlNotation.cs
- Model3DCollection.cs
- ClientType.cs
- ConnectionManagementElementCollection.cs
- BaseTemplateCodeDomTreeGenerator.cs
- TextTreeFixupNode.cs
- HtmlProps.cs
- PtsHelper.cs
- VectorCollectionConverter.cs
- EntityDataSourceChangingEventArgs.cs
- DesignerOptionService.cs
- PageHandlerFactory.cs
- BaseCodeDomTreeGenerator.cs
- WebResponse.cs
- HttpRequest.cs
- XomlCompilerParameters.cs
- FrameworkElementAutomationPeer.cs
- ContentFilePart.cs
- ImpersonateTokenRef.cs
- UrlUtility.cs
- StringToken.cs
- MimeMultiPart.cs
- TcpStreams.cs
- DocumentXmlWriter.cs
- HtmlElement.cs
- FormViewInsertEventArgs.cs
- DockPattern.cs
- DocumentPageTextView.cs
- Socket.cs
- DataTemplateKey.cs
- TraceHandler.cs
- ReliableMessagingVersion.cs
- EntityDataSourceSelectingEventArgs.cs
- InvalidFilterCriteriaException.cs
- ColorTransform.cs
- AccessibleObject.cs
- GB18030Encoding.cs
- NonDualMessageSecurityOverHttp.cs
- IndexingContentUnit.cs
- WebPartConnectVerb.cs
- ScaleTransform3D.cs
- FixedSOMLineCollection.cs
- XmlSchemaSubstitutionGroup.cs
- UrlMappingsModule.cs
- ProcessThread.cs
- SafeViewOfFileHandle.cs
- BindingCollection.cs
- XmlSchemaExternal.cs
- PolicyManager.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- XPathAxisIterator.cs
- SrgsDocumentParser.cs
- DataRowComparer.cs
- CanonicalXml.cs
- XmlLangPropertyAttribute.cs
- Delegate.cs
- DirectoryInfo.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- ControlIdConverter.cs
- InstanceCollisionException.cs
- TextViewBase.cs
- GridViewDeletedEventArgs.cs
- GPRECT.cs
- VectorCollection.cs
- RegisterInfo.cs
- StateInitializationDesigner.cs
- EntityDataSourceEntityTypeFilterItem.cs
- Material.cs
- AmbiguousMatchException.cs
- ProvidersHelper.cs
- ExpressionPrefixAttribute.cs
- ListViewSortEventArgs.cs
- ImageBrush.cs
- _NTAuthentication.cs
- TextCompositionManager.cs
- Enumerable.cs
- CompilationUtil.cs
- PropertyRecord.cs
- DuplicateContext.cs
- SqlGenericUtil.cs
- CompositeControl.cs
- SqlConnection.cs
- FileSystemEventArgs.cs
- HttpProfileBase.cs
- StringReader.cs
- ProtocolsConfigurationEntry.cs
- BaseDataList.cs
- WaitHandle.cs
- ProfileServiceManager.cs
- TypeUtil.cs
- BehaviorEditorPart.cs