mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 01:58:13 +08:00
Optimized code
This commit is contained in:
@@ -618,7 +618,7 @@ namespace SqlSugar
|
|||||||
internal static Type GetCustomTypeByClass(string className)
|
internal static Type GetCustomTypeByClass(string className)
|
||||||
{
|
{
|
||||||
Type type = null;
|
Type type = null;
|
||||||
foreach (var item in CustomDlls.AsEnumerable())
|
foreach (var item in CustomDlls.ToArray())
|
||||||
{
|
{
|
||||||
if (type == null)
|
if (type == null)
|
||||||
{
|
{
|
||||||
@@ -673,7 +673,7 @@ namespace SqlSugar
|
|||||||
internal static Type GetCustomTypeByClass<T>(string className)
|
internal static Type GetCustomTypeByClass<T>(string className)
|
||||||
{
|
{
|
||||||
Type type = null;
|
Type type = null;
|
||||||
foreach (var item in CustomDlls.AsEnumerable())
|
foreach (var item in CustomDlls.ToArray())
|
||||||
{
|
{
|
||||||
if (type == null)
|
if (type == null)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user