private object RequireWriteProtocol(RubyContext /*!*/ context, object value, string /*!*/ variableName) { if (!context.RespondTo(value, "write")) { throw RubyExceptions.CreateTypeError(String.Format("${0} must have write method, {1} given", variableName, context.GetClassDisplayName(value))); } return(value); }
private object RequireWriteProtocol(RubyContext/*!*/ context, object value, string/*!*/ variableName) { if (!context.RespondTo(value, "write")) { throw RubyExceptions.CreateTypeError(String.Format("${0} must have write method, {1} given", variableName, RubyUtils.GetClassName(context, value))); } return value; }