Close() private method

private Close ( ) : void
return void
コード例 #1
0
ファイル: Dir.cs プロジェクト: atczyc/ironruby
        public static RubyDir/*!*/ Reinitialize(RubyDir/*!*/ self, [NotNull]MutableString/*!*/ dirname) {
            self.Close();

            string strName = self.ImmediateClass.Context.DecodePath(dirname);
            try {
                self._rawEntries = self.Platform.GetFileSystemEntries(strName, "*");
            } catch (Exception ex) {
                throw ToRubyException(ex, strName, DirectoryOperation.Open);
            }
            self._dirName = dirname.Clone();
            self._pos = -2;
            return self;
        }
コード例 #2
0
ファイル: Dir.cs プロジェクト: ltwlf/IronSP
        public static RubyDir /*!*/ Reinitialize(RubyDir /*!*/ self, [NotNull] MutableString /*!*/ dirname)
        {
            self.Close();

            string strName = self.ImmediateClass.Context.DecodePath(dirname);

            try {
                self._rawEntries = self.Platform.GetFileSystemEntries(strName, "*");
            } catch (Exception ex) {
                throw ToRubyException(ex, strName, DirectoryOperation.Open);
            }
            self._dirName = dirname.Clone();
            self._pos     = -2;
            return(self);
        }
コード例 #3
0
ファイル: Dir.cs プロジェクト: atczyc/ironruby
 public static void Close(RubyDir/*!*/ self) {
     self.ThrowIfClosed();
     self.Close();
 }
コード例 #4
0
ファイル: Dir.cs プロジェクト: ltwlf/IronSP
 public static void Close(RubyDir /*!*/ self)
 {
     self.ThrowIfClosed();
     self.Close();
 }