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; }
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[] 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[] 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); }
private void Init(TypeForwardedToAttribute forwardedTo) { Type type = typeof(TypeForwardedToAttribute); Type[] types = new Type[] { typeof(Type) }; this.m_ctor = type.GetConstructor(BindingFlags.Public | BindingFlags.Instance, null, types, null); CustomAttributeTypedArgument[] array = new CustomAttributeTypedArgument[] { new CustomAttributeTypedArgument(typeof(Type), forwardedTo.Destination) }; this.m_typedCtorArgs = Array.AsReadOnly<CustomAttributeTypedArgument>(array); CustomAttributeNamedArgument[] argumentArray2 = new CustomAttributeNamedArgument[0]; this.m_namedArgs = Array.AsReadOnly<CustomAttributeNamedArgument>(argumentArray2); }
private void Init(TypeForwardedToAttribute forwardedTo) { Type type = typeof(TypeForwardedToAttribute); Type[] sig = new Type[] { typeof(Type) }; m_ctor = type.GetConstructor(BindingFlags.Public | BindingFlags.Instance, null, sig, null); CustomAttributeTypedArgument[] typedArgs = new CustomAttributeTypedArgument[1]; typedArgs[0] = new CustomAttributeTypedArgument(typeof(Type), forwardedTo.Destination); m_typedCtorArgs = Array.AsReadOnly(typedArgs); CustomAttributeNamedArgument[] namedArgs = new CustomAttributeNamedArgument[0]; m_namedArgs = Array.AsReadOnly(namedArgs); }