Наследование: System.Dynamic.SetMemberBinder
Пример #1
0
        public InteropBinder.SetMemberExact /*!*/ InteropSetMemberExact(string /*!*/ name)
        {
            if (_interopSetMemberExact == null)
            {
                Interlocked.CompareExchange(ref _interopSetMemberExact, new Dictionary <string, InteropBinder.SetMemberExact>(), null);
            }

            lock (_interopSetMemberExact) {
                InteropBinder.SetMemberExact result;
                if (!_interopSetMemberExact.TryGetValue(name, out result))
                {
                    _interopSetMemberExact.Add(name, result = new InteropBinder.SetMemberExact(_context, name));
                }
                return(result);
            }
        }
Пример #2
0
        public static InteropBinder.SetMemberExact /*!*/ InteropSetMemberExact(string /*!*/ name)
        {
            if (_interopSetMemberExact == null)
            {
                _interopSetMemberExact = new Dictionary <string, InteropBinder.SetMemberExact>();
            }

            lock (_interopSetMemberExact) {
                InteropBinder.SetMemberExact result;
                if (!_interopSetMemberExact.TryGetValue(name, out result))
                {
                    _interopSetMemberExact.Add(name, result = new InteropBinder.SetMemberExact(name));
                }
                return(result);
            }
        }