Example #1
0
        public static int Write(RubyIO /*!*/ self, [NotNull] MutableString /*!*/ val)
        {
            self.AssertOpenedForWriting();
            int bytesWritten = self.Write(val);

            if (self.AutoFlush)
            {
                self.Flush();
            }
            return(bytesWritten);
        }
Example #2
0
 public static int Write(RubyIO/*!*/ self, [NotNull]MutableString/*!*/ val) {
     self.AssertOpenedForWriting();
     int bytesWritten = self.Write(val);
     if (self.AutoFlush) {
         self.Flush();
     }
     return bytesWritten;
 }