コード例 #1
0
 public static void Save(string fieldName, Type type)
 {
     if (fieldName == null || type == null)
     {
         return;
     }
     if (IsValid(type, out string name))
     {
         DO_Helper.Save(Path.Combine(Path.GetDirectoryName(type.Assembly.Location), name), fieldName, type);
     }
 }
コード例 #2
0
 public static void Save(string fieldName, Type type, string rootdir)
 {
     if (fieldName == null || type == null || string.IsNullOrWhiteSpace(rootdir))
     {
         return;
     }
     if (IsValid(type, out string name))
     {
         DO_Helper.Save(Path.Combine(rootdir, name), fieldName, type);
     }
 }