Example #1
0
        private string GetFilePath(StringGroup group)
        {
            var path = Path.Combine(
                _root, group.Path);

            if (!IsDefault(group))
                path += "." + group.Language;

            return path + ".resx";
        }
Example #2
0
        private bool Equals(StringGroup other)
        {
            if (ReferenceEquals(null, other))
                return false;

            if (ReferenceEquals(this, other))
                return true;

            return Equals(other._path, _path) &&
                Equals(other._language, _language);
        }
        private string GetFilePath(StringGroup group)
        {
            var path = Path.Combine(
                _root, group.Path);

            if (!IsDefault(group))
            {
                path += "." + group.Language;
            }

            return(path + ".resx");
        }
Example #4
0
        private bool Equals(StringGroup other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }

            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return(Equals(other._path, _path) &&
                   Equals(other._language, _language));
        }
Example #5
0
 private bool IsDefault(StringGroup group)
 {
     return group.Language == _defLangauge;
 }
 private bool IsDefault(StringGroup group)
 {
     return(group.Language == _defLangauge);
 }