public static void Save(Type type, string rootdir) { if (type == null || string.IsNullOrWhiteSpace(rootdir)) { return; } if (IsValid(type, out string name)) { DO_Helper.SaveAll(Path.Combine(rootdir, name), type); } }
public static void Save(Type type) { if (type == null) { return; } if (IsValid(type, out string name)) { DO_Helper.SaveAll(Path.Combine(Path.GetDirectoryName(type.Assembly.Location), name), type); } }