internal static TypeForwardedToAttribute[] GetCustomAttribute(RuntimeAssembly assembly) { Type[] o = null; RuntimeAssembly.GetForwardedTypes(assembly.GetNativeHandle(), JitHelpers.GetObjectHandleOnStack <Type[]>(ref o)); TypeForwardedToAttribute[] attributeArray = new TypeForwardedToAttribute[o.Length]; for (int i = 0; i < o.Length; i++) { attributeArray[i] = new TypeForwardedToAttribute(o[i]); } return(attributeArray); }
internal static TypeForwardedToAttribute[] GetCustomAttribute(RuntimeAssembly assembly) { Type[] o = (Type[])null; RuntimeAssembly.GetForwardedTypes(assembly.GetNativeHandle(), JitHelpers.GetObjectHandleOnStack <Type[]>(ref o)); TypeForwardedToAttribute[] forwardedToAttributeArray = new TypeForwardedToAttribute[o.Length]; for (int index = 0; index < o.Length; ++index) { forwardedToAttributeArray[index] = new TypeForwardedToAttribute(o[index]); } return(forwardedToAttributeArray); }
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); }