示例#1
0
        private static bool Save <T>(T _content, string _file)
        {
            CreatePathIfNeeded(FOLDER);

            string filePath = Path.Combine(FOLDER, _file);

            if (VersionControl.IsUsable(VersionControl.TryCheckOutOrAdd(filePath)))
            {
                bool successfullySaved = Serialise(_content, filePath);
                VersionControl.TryCheckOutOrAdd(filePath);

                return(successfullySaved);
            }
            else
            {
                return(false);
            }
        }