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
- ComponentDispatcher.cs
- SettingsPropertyIsReadOnlyException.cs
- VisualBrush.cs
- BamlLocalizer.cs
- ToolboxService.cs
- BezierSegment.cs
- BitmapCache.cs
- AssociationSetEnd.cs
- XPathNodeInfoAtom.cs
- WindowsFormsHost.cs
- TranslateTransform3D.cs
- HttpBindingExtension.cs
- ToolStripRendererSwitcher.cs
- HMACMD5.cs
- GetParentChain.cs
- DebugViewWriter.cs
- DetailsViewModeEventArgs.cs
- Converter.cs
- TypeExtension.cs
- CodeGen.cs
- ValueSerializer.cs
- RectangleF.cs
- BamlRecordReader.cs
- RootAction.cs
- SectionUpdates.cs
- SmiMetaDataProperty.cs
- AuthenticationService.cs
- ThemeableAttribute.cs
- BindingMemberInfo.cs
- DBPropSet.cs
- WebPartTransformerAttribute.cs
- TextParaClient.cs
- X509SecurityToken.cs
- HttpSessionStateWrapper.cs
- WebControlAdapter.cs
- Pair.cs
- ValueTable.cs
- Roles.cs
- Span.cs
- XhtmlBasicControlAdapter.cs
- DataServiceRequestException.cs
- Geometry3D.cs
- ListControlBoundActionList.cs
- XmlObjectSerializer.cs
- QuotedStringWriteStateInfo.cs
- TableLayoutPanelCellPosition.cs
- AmbientLight.cs
- UserUseLicenseDictionaryLoader.cs
- DebugController.cs
- ScriptMethodAttribute.cs
- IPPacketInformation.cs
- CharUnicodeInfo.cs
- URLString.cs
- ACL.cs
- AutomationEvent.cs
- HostProtectionException.cs
- TextTreeText.cs
- WebPartConnectionsCancelEventArgs.cs
- MessageDecoder.cs
- AutomationAttributeInfo.cs
- FormViewDeleteEventArgs.cs
- OutputWindow.cs
- TextDecorations.cs
- UrlPath.cs
- TreeNodeStyleCollection.cs
- TreeNodeStyleCollection.cs
- Evaluator.cs
- MemoryPressure.cs
- PathGradientBrush.cs
- ZipIOFileItemStream.cs
- AuthenticationManager.cs
- SynchronizedPool.cs
- Certificate.cs
- ArraySet.cs
- counter.cs
- ForceCopyBuildProvider.cs
- EntityContainerEmitter.cs
- ObjectFullSpanRewriter.cs
- IssuanceTokenProviderState.cs
- RegisteredHiddenField.cs
- xmlformatgeneratorstatics.cs
- MulticastNotSupportedException.cs
- SortExpressionBuilder.cs
- BuildResult.cs
- TabletDevice.cs
- UIElementParaClient.cs
- VersionedStreamOwner.cs
- StreamWithDictionary.cs
- SQLBytes.cs
- LayoutUtils.cs
- RtfControlWordInfo.cs
- VisualBasicHelper.cs
- ScriptDescriptor.cs
- ApplicationServicesHostFactory.cs
- CompareValidator.cs
- WebPartConnectionsCloseVerb.cs
- ProfileSettingsCollection.cs
- LinkedResource.cs
- TableLayoutPanelCodeDomSerializer.cs
- BindUriHelper.cs