private static int GetLogicalTypeDepth(Type type) { int depth = GetTypeDepth(type); return (type.IsValueType) ? depth - 1 : depth; }