refactor: removed unnecessary logs
This commit is contained in:
parent
82cc25a9ef
commit
9581f5aa54
@ -15,23 +15,13 @@ public class EntityFinder
|
|||||||
{
|
{
|
||||||
TypeData typeData = Utils.GetTypeData(@object.GetType());
|
TypeData typeData = Utils.GetTypeData(@object.GetType());
|
||||||
|
|
||||||
if (@object is IEntity entity)
|
if (@object is not IEntity entity)
|
||||||
{
|
return;
|
||||||
if (_entities.Add(entity))
|
|
||||||
{
|
if (!_entities.Add(entity))
|
||||||
Console.WriteLine($"Found Entity: {entity.Id}");
|
return;
|
||||||
|
|
||||||
FindEntitiesUnder(entity);
|
FindEntitiesUnder(entity);
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
Console.WriteLine($"Duplicate Entity: {entity.Id}");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
foreach (PropertyInfo propertyInfo in typeData.Properties)
|
foreach (PropertyInfo propertyInfo in typeData.Properties)
|
||||||
{
|
{
|
||||||
@ -57,8 +47,8 @@ public class EntityFinder
|
|||||||
if (fieldInfo.HasAttribute<System.Runtime.CompilerServices.CompilerGeneratedAttribute>())
|
if (fieldInfo.HasAttribute<System.Runtime.CompilerServices.CompilerGeneratedAttribute>())
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// if (!fieldInfo.HasAttribute<SerializeAttribute>())
|
if (!fieldInfo.HasAttribute<SerializeAttribute>())
|
||||||
// continue;
|
continue;
|
||||||
|
|
||||||
object? value = fieldInfo.GetValue(@object);
|
object? value = fieldInfo.GetValue(@object);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user