public SymplSetMemberBinder GetSetMemberBinder(string name) { lock (_setMemberBinders) { // Don't lower the name. Sympl is case-preserving in the metadata // in case some DynamicMetaObject ignores ignoreCase. This makes // some interop cases work, but the cost is that if a Sympl program // spells ".foo" and ".Foo" at different sites, they won't share rules. if (_setMemberBinders.ContainsKey(name)) { return(_setMemberBinders[name]); } var b = new SymplSetMemberBinder(name); _setMemberBinders[name] = b; return(b); } }
public SymplSetMemberBinder GetSetMemberBinder (string name) { lock (_setMemberBinders) { // Don't lower the name. Sympl is case-preserving in the metadata // in case some DynamicMetaObject ignores ignoreCase. This makes // some interop cases work, but the cost is that if a Sympl program // spells ".foo" and ".Foo" at different sites, they won't share rules. if (_setMemberBinders.ContainsKey(name)) return _setMemberBinders[name]; var b = new SymplSetMemberBinder(name); _setMemberBinders[name] = b; return b; } }