public static InterfaceMapping GetRuntimeInterfaceMap(this TypeInfo typeInfo, Type interfaceType) { if (typeInfo == null) { throw new ArgumentNullException(nameof(typeInfo)); } return(typeInfo.GetInterfaceMap(interfaceType)); }
public static InterfaceMapping GetRuntimeInterfaceMap(this TypeInfo typeInfo, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicMethods | DynamicallyAccessedMemberTypes.NonPublicMethods)] Type interfaceType) { if (typeInfo == null) { throw new ArgumentNullException(nameof(typeInfo)); } return(typeInfo.GetInterfaceMap(interfaceType)); }
public static InterfaceMapping GetRuntimeInterfaceMap(this TypeInfo typeInfo, Type interfaceType) { if (typeInfo == null) { throw new ArgumentNullException("typeInfo"); } if (!(typeInfo is RuntimeType)) { throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeType")); } return(typeInfo.GetInterfaceMap(interfaceType)); }
public static InterfaceMapping GetRuntimeInterfaceMap(this TypeInfo typeInfo, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicMethods | DynamicallyAccessedMemberTypes.NonPublicMethods)] Type interfaceType) { ArgumentNullException.ThrowIfNull(typeInfo); return(typeInfo.GetInterfaceMap(interfaceType)); }