Inheritance: System.Dynamic.DynamicObject
Esempio n. 1
0
        public override bool TryGetMember(GetMemberBinder binder, out object result)
        {
            result = null;
            if (dictionary.Keys.All(x => x != binder.Name))
                return false;

            result = new DynamicDictionary(new Dictionary<string, string> { { binder.Name, dictionary[binder.Name] } });
            return true;
        }