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
- Wrapper.cs
- PeerCollaboration.cs
- CLRBindingWorker.cs
- XmlCharType.cs
- _RequestLifetimeSetter.cs
- HtmlInputReset.cs
- DataColumnMappingCollection.cs
- SqlCommandAsyncResult.cs
- coordinator.cs
- TextTreeRootTextBlock.cs
- UrlMapping.cs
- ping.cs
- CommandHelper.cs
- XmlCharCheckingReader.cs
- PictureBox.cs
- IResourceProvider.cs
- WebZoneDesigner.cs
- RegexCaptureCollection.cs
- SpeechRecognizer.cs
- AttributeCallbackBuilder.cs
- SelectionProviderWrapper.cs
- SHA256.cs
- UnsignedPublishLicense.cs
- FixUp.cs
- PngBitmapEncoder.cs
- UserPersonalizationStateInfo.cs
- CodeRegionDirective.cs
- ClockController.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- HttpModulesInstallComponent.cs
- PrinterResolution.cs
- WebPartAddingEventArgs.cs
- DataGridColumnCollectionEditor.cs
- RepeaterItemEventArgs.cs
- Help.cs
- SystemTcpStatistics.cs
- Cursor.cs
- ApplicationSettingsBase.cs
- MemberPath.cs
- XmlSerializer.cs
- SystemIPInterfaceProperties.cs
- DoubleAnimationClockResource.cs
- IntSecurity.cs
- RulePatternOps.cs
- NotSupportedException.cs
- DesignTimeDataBinding.cs
- Animatable.cs
- Transform3D.cs
- Rotation3DKeyFrameCollection.cs
- AspNetHostingPermission.cs
- MonitoringDescriptionAttribute.cs
- SettingsAttributes.cs
- ParseHttpDate.cs
- FixedSOMLineCollection.cs
- WindowsListViewGroupHelper.cs
- ChineseLunisolarCalendar.cs
- SafeArrayRankMismatchException.cs
- MachineKeyConverter.cs
- ByteViewer.cs
- BoundsDrawingContextWalker.cs
- InlinedAggregationOperator.cs
- ValidatorCompatibilityHelper.cs
- formatstringdialog.cs
- Int32KeyFrameCollection.cs
- remotingproxy.cs
- RepeatButton.cs
- Symbol.cs
- CLSCompliantAttribute.cs
- DebugHandleTracker.cs
- SpecialTypeDataContract.cs
- WebPartMenu.cs
- ContractReference.cs
- ScopelessEnumAttribute.cs
- CryptoProvider.cs
- cache.cs
- SystemIcmpV4Statistics.cs
- CollectionBuilder.cs
- CompilerScopeManager.cs
- LogConverter.cs
- HTTPRemotingHandler.cs
- EntityDataSourceDataSelectionPanel.cs
- ApplicationServiceManager.cs
- WebPartUserCapability.cs
- Pen.cs
- SocketStream.cs
- TableStyle.cs
- Matrix.cs
- BaseTemplateParser.cs
- AvtEvent.cs
- XmlSerializableServices.cs
- EventSetter.cs
- PageContentCollection.cs
- WebPartCloseVerb.cs
- Control.cs
- URI.cs
- BlockCollection.cs
- ArrayList.cs
- ConnectionManager.cs
- SqlDelegatedTransaction.cs
- WeakReferenceList.cs