Ejemplo n.º 1
0
 internal JsonFileProcessor(string path)
 {
     _paths = new List <string>()
     {
         path
     };
     ProcessDirectory();
     _r = new LangBag(this);
 }
Ejemplo n.º 2
0
        public override bool TryGetMember(
            GetMemberBinder binder, out object result)
        {
            var name = binder.Name.ToLower();

            if (string.IsNullOrWhiteSpace(_resource))
            {
                result = new LangBag(_processor, name);
                return(true);
            }

            result = _processor[_resource, name];
            return(true);
        }
 internal JsonFileProcessor(string path)
 {
     _path = path;
     ProcessDirectory();
     _r = new LangBag(this);
 }