Beispiel #1
0
            internal SetMember(RubyContext /*!*/ context, string /*!*/ name)
            {
                Assert.NotNull(context, name);

                _name         = name;
                _context      = context;
                _tryGetMember = context.MetaBinderFactory.InteropTryGetMemberExact(name);
                _setMember    = context.MetaBinderFactory.InteropSetMemberExact(name);

                string unmanagled = RubyUtils.TryUnmangleMethodName(name);

                if (unmanagled != null)
                {
                    _setMemberUnmangled    = context.MetaBinderFactory.InteropSetMemberExact(unmanagled);
                    _tryGetMemberUnmangled = context.MetaBinderFactory.InteropTryGetMemberExact(unmanagled);
                }
            }
Beispiel #2
0
            internal SetMember(RubyContext/*!*/ context, string/*!*/ name) {
                Assert.NotNull(context, name);

                _name = name;
                _context = context;
                _tryGetMember = RubyMetaBinderFactory.InteropTryGetMemberExact(name);
                _setMember = RubyMetaBinderFactory.InteropSetMemberExact(name);

                string unmanagled = RubyUtils.TryUnmangleMethodName(name);
                if (unmanagled != null) {
                    _setMemberUnmangled = RubyMetaBinderFactory.InteropSetMemberExact(unmanagled);
                    _tryGetMemberUnmangled = RubyMetaBinderFactory.InteropTryGetMemberExact(unmanagled);
                }
            }