Esempio n. 1
0
 internal static Stream/*!*/ GetDescriptorStream(RubyContext/*!*/ context, int descriptor) {
     Stream stream = context.GetStream(descriptor);
     if (stream == null) {
         throw RubyExceptions.CreateEBADF();
     }
     return stream;
 }
Esempio n. 2
0
        internal static Stream /*!*/ GetDescriptorStream(RubyContext /*!*/ context, int descriptor)
        {
            Stream stream = context.GetStream(descriptor);

            if (stream == null)
            {
                throw RubyExceptions.CreateEBADF();
            }
            return(stream);
        }