protected static bool IsStruct(Type t) { return t.IsValueType && t.IsPrimitive == false && t.IsEnum == false; }