public static string getString(FieldInfo fi, object src) { if (ReflecTools.equals(fi, typeof(string))) { return(StringTools.escape((string)src)); } if (ReflecTools.equals(fi, typeof(int))) { return("" + (int)src); } if (ReflecTools.equals(fi, typeof(long))) { return("" + (long)src); } if (ReflecTools.equals(fi, typeof(bool))) { return(StringTools.toString((bool)src)); } throw new Exception("そんなタイプ知りません:" + fi); }