public static T LogError <T>(this T obj) { if (!_openDebug) { return(obj); } _logComponent?.Error(obj); return(obj); }