From 56d8cea635a028d13cfd9b1cfc3599b0b0a5a454 Mon Sep 17 00:00:00 2001 From: Railz Date: Tue, 1 Oct 2019 21:07:50 +0200 Subject: [PATCH] Removed type-conversion --- Database-Attribute_System/ClassAction.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Database-Attribute_System/ClassAction.cs b/Database-Attribute_System/ClassAction.cs index 4ba59d4..af986ad 100644 --- a/Database-Attribute_System/ClassAction.cs +++ b/Database-Attribute_System/ClassAction.cs @@ -71,10 +71,6 @@ namespace eu.railduction.netcore.dll.Database_Attribute_System object value = data_keySet.Value; if (!(value is DBNull)) // Check if value is empty { - // Convert type if necessary - if (baseAttribute.parentField.FieldType == typeof(Guid)) value = new Guid((string)value); - if (baseAttribute.parentField.FieldType == typeof(char)) value = (char)value; - baseAttribute.parentField.SetValue(classObject, value); break; }