コード例 #1
0
        protected override ResourceSet InternalGetResourceSet(CultureInfo culture, bool createIfNotExists, bool tryParents)
        {
            DatabaseResourceSet rs = null;

            if (this.resources.Contains(culture.Name))
            {
                rs = this.resources[culture.Name] as DatabaseResourceSet;
            }
            else
            {
                rs = new DatabaseResourceSet(dsn, culture);
                this.resources.Add(culture.Name, rs);
            }
            return(rs);
        }
コード例 #2
0
        protected override ResourceSet InternalGetResourceSet(CultureInfo culture, bool createIfNotExists, bool tryParents)
        {
            DatabaseResourceSet rs = null;

            if (this.resources.Contains(culture.Name))
            {
                rs = this.resources[culture.Name] as DatabaseResourceSet;
            }
            else
            {
                rs = new DatabaseResourceSet(dsn, culture);
                this.resources.Add(culture.Name, rs);
            }
            return rs;
        }