public static Assembly GetAssembly(this Type type) { #if NET_CORE return type.GetTypeInfo ().Assembly; #else return type.Assembly; #endif }