private static bool IsStruct(Type objType) { return objType.GetTypeInfo().IsValueType && !objType.GetTypeInfo().IsPrimitive; }