Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Runtime / CompilerServices / TypeForwardedToAttribute.cs / 1305376 / TypeForwardedToAttribute.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== using System; using System.Reflection; namespace System.Runtime.CompilerServices { using System; [AttributeUsage(AttributeTargets.Assembly, AllowMultiple=true, Inherited=false)] public sealed class TypeForwardedToAttribute : Attribute { private Type _destination; public TypeForwardedToAttribute(Type destination) { _destination = destination; } public Type Destination { get { return _destination; } } [System.Security.SecurityCritical] internal static TypeForwardedToAttribute[] GetCustomAttribute(RuntimeAssembly assembly) { Type[] types = null; RuntimeAssembly.GetForwardedTypes(assembly.GetNativeHandle(), JitHelpers.GetObjectHandleOnStack(ref types)); TypeForwardedToAttribute[] attributes = new TypeForwardedToAttribute[types.Length]; for (int i = 0; i < types.Length; ++i) attributes[i] = new TypeForwardedToAttribute(types[i]); return attributes; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== using System; using System.Reflection; namespace System.Runtime.CompilerServices { using System; [AttributeUsage(AttributeTargets.Assembly, AllowMultiple=true, Inherited=false)] public sealed class TypeForwardedToAttribute : Attribute { private Type _destination; public TypeForwardedToAttribute(Type destination) { _destination = destination; } public Type Destination { get { return _destination; } } [System.Security.SecurityCritical] internal static TypeForwardedToAttribute[] GetCustomAttribute(RuntimeAssembly assembly) { Type[] types = null; RuntimeAssembly.GetForwardedTypes(assembly.GetNativeHandle(), JitHelpers.GetObjectHandleOnStack(ref types)); TypeForwardedToAttribute[] attributes = new TypeForwardedToAttribute[types.Length]; for (int i = 0; i < types.Length; ++i) attributes[i] = new TypeForwardedToAttribute(types[i]); return attributes; } } } // 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
- RightsManagementEncryptedStream.cs
- CellNormalizer.cs
- ReadOnlyCollection.cs
- CommonGetThemePartSize.cs
- BuilderInfo.cs
- SQLMoney.cs
- TypeDescriptionProviderAttribute.cs
- Mouse.cs
- SystemFonts.cs
- WindowsRegion.cs
- RouteParser.cs
- SineEase.cs
- SignedXml.cs
- WindowsRichEditRange.cs
- ASCIIEncoding.cs
- TypeUsage.cs
- ParallelTimeline.cs
- SqlExpander.cs
- ListenerPerfCounters.cs
- FontNamesConverter.cs
- SignedInfo.cs
- SizeLimitedCache.cs
- GenericTypeParameterBuilder.cs
- AuthenticationService.cs
- RsaSecurityToken.cs
- HtmlShimManager.cs
- ToggleButtonAutomationPeer.cs
- DetailsViewActionList.cs
- DXD.cs
- SelectionProcessor.cs
- XhtmlConformanceSection.cs
- DefaultObjectMappingItemCollection.cs
- SmtpLoginAuthenticationModule.cs
- WsatServiceAddress.cs
- WinEventWrap.cs
- ArrayEditor.cs
- WebPartDisplayModeCollection.cs
- followingsibling.cs
- OciHandle.cs
- SynchronizedDisposablePool.cs
- UserUseLicenseDictionaryLoader.cs
- GreaterThanOrEqual.cs
- CounterCreationData.cs
- EndpointInfo.cs
- MappingModelBuildProvider.cs
- ExpressionBuilderContext.cs
- Vector3DAnimationBase.cs
- SoapAttributes.cs
- XmlHierarchicalDataSourceView.cs
- VariantWrapper.cs
- XmlNavigatorStack.cs
- SerializationStore.cs
- Bind.cs
- DESCryptoServiceProvider.cs
- NotifyParentPropertyAttribute.cs
- ExpressionNormalizer.cs
- DataGridPageChangedEventArgs.cs
- SortDescription.cs
- TriggerActionCollection.cs
- CachedPathData.cs
- XomlSerializationHelpers.cs
- TransformerTypeCollection.cs
- ReferenceSchema.cs
- BoundColumn.cs
- PreviewKeyDownEventArgs.cs
- Int32.cs
- DockPatternIdentifiers.cs
- MustUnderstandBehavior.cs
- EntityPropertyMappingAttribute.cs
- Mapping.cs
- DataControlPagerLinkButton.cs
- DoubleAnimationClockResource.cs
- PageThemeCodeDomTreeGenerator.cs
- AtomPub10ServiceDocumentFormatter.cs
- SHA512Managed.cs
- TextBoxLine.cs
- EventHandlerService.cs
- StateDesigner.Layouts.cs
- SafeThemeHandle.cs
- MexHttpsBindingCollectionElement.cs
- AutoResizedEvent.cs
- CrossSiteScriptingValidation.cs
- SectionRecord.cs
- MD5Cng.cs
- SrgsRule.cs
- TextBoxLine.cs
- wmiprovider.cs
- CodeMemberField.cs
- NumericUpDownAcceleration.cs
- SolidBrush.cs
- SqlStatistics.cs
- CheckBoxPopupAdapter.cs
- BufferBuilder.cs
- StrokeCollection.cs
- AmbientProperties.cs
- LinkButton.cs
- HttpApplicationFactory.cs
- DirectoryInfo.cs
- NullableConverter.cs
- Size.cs