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());
|
||||
|
||||
if (@object is IEntity entity)
|
||||
{
|
||||
if (_entities.Add(entity))
|
||||
{
|
||||
Console.WriteLine($"Found Entity: {entity.Id}");
|
||||
FindEntitiesUnder(entity);
|
||||
}
|
||||
else
|
||||
{
|
||||
Console.WriteLine($"Duplicate Entity: {entity.Id}");
|
||||
return;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (@object is not IEntity entity)
|
||||
return;
|
||||
}
|
||||
|
||||
if (!_entities.Add(entity))
|
||||
return;
|
||||
|
||||
FindEntitiesUnder(entity);
|
||||
|
||||
foreach (PropertyInfo propertyInfo in typeData.Properties)
|
||||
{
|
||||
@ -57,8 +47,8 @@ public class EntityFinder
|
||||
if (fieldInfo.HasAttribute<System.Runtime.CompilerServices.CompilerGeneratedAttribute>())
|
||||
continue;
|
||||
|
||||
// if (!fieldInfo.HasAttribute<SerializeAttribute>())
|
||||
// continue;
|
||||
if (!fieldInfo.HasAttribute<SerializeAttribute>())
|
||||
continue;
|
||||
|
||||
object? value = fieldInfo.GetValue(@object);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user