2008-08-03T10:58:54の更新内容

programming/ruby/compare_with_cs/index.wiki.txt

current previous
171,22 171,19
 
|Directory.GetFileSystemEntries(dir)|Dir.entries(path)|
|Directory.GetFileSystemEntries(dir)|Dir.entries(path)|
 
|Directory.GetFileSystemEntries(dir, pattern)|Dir.glob(pattern)|
|Directory.GetFileSystemEntries(dir, pattern)|Dir.glob(pattern)|
 
|N/A|File.split|
|N/A|File.split|
~
|File.Copy|FileUtils.cp, FileUtils.cp_r, FileUtils.copy|
|File.Delete|File.delete, File.unlink|
+
|File.Delete|File.delete, File.unlink, FileUtils.rm|
 
|File.Move|File.rename|
|File.Move|File.rename|
 
|FileStream.SetLength|File.truncate|
|FileStream.SetLength|File.truncate|
 
|FileInfo.Length|File.size|
|FileInfo.Length|File.size|
~
|Directory.CreateDirectory|Dir.mkdir,FileUtils.mkdir|
|Directory.CreateDirectory|Dir.mkdir|
~
|N/A|FileUtils.mkdir_p|
|Directory.Delete|Dir.rmdir|
+
|Directory.Delete|Dir.rmdir, FileUtils.rm_r|
 
|File.GetLastAccessTime, Directory.GetLastAccessTime|File.atime|
|File.GetLastAccessTime, Directory.GetLastAccessTime|File.atime|
 
|N/A|File.ctime|
|N/A|File.ctime|
 
|File.GetLastWriteTime, Directory.GetLastWriteTime|File.mtime|
|File.GetLastWriteTime, Directory.GetLastWriteTime|File.mtime|
 
|File.GetCreationTime, Directory.GetCreationTime|N/A|
|File.GetCreationTime, Directory.GetCreationTime|N/A|
 
|N/A|File.identical?|
|N/A|File.identical?|
~
|N/A|FileUtils.touch|
|Directory.SetCurrentDirectory, Environment.CurrentDirectory|Dir.chdir|
~
|Directory.SetCurrentDirectory, Environment.CurrentDirectory|Dir.chdir, FileUtils.cd|
|Directory.GetCurrentDirectory, Environment.CurrentDirectory|Dir.pwd, Dir.getwd|
+
|Directory.GetCurrentDirectory, Environment.CurrentDirectory|Dir.pwd, Dir.getwd, FileUtils.pwd|
 
|new FileInfo, new DirectoryInfo, Mono.Unix.Native.Syscall.stat(Mono.Posix.dll)|File.stat|
|new FileInfo, new DirectoryInfo, Mono.Unix.Native.Syscall.stat(Mono.Posix.dll)|File.stat|
 
|Mono.Unix.Native.Syscall.chmod(Mono.Posix.dll)|File.chmod|
|Mono.Unix.Native.Syscall.chmod(Mono.Posix.dll)|File.chmod|
 
|Mono.Unix.Native.Syscall.chown(Mono.Posix.dll)|File.chown|
|Mono.Unix.Native.Syscall.chown(Mono.Posix.dll)|File.chown|
224,28 221,14
 
|Environment.Exit|exit|
|Environment.Exit|exit|
 
|C#|Ruby|f
|C#|Ruby|f
 

        

        
+
**スレッド
+
|C#|Ruby|h
+
|Thread.Sleep(1)|sleep(0.001)|
+
|Thread.Sleep(1000)|sleep(1)|
+
|(new Thread(ThreadStart)).Start|Thread.new {...}, Thread.start {...}, Thread.fork {...}|
+
|(new Thread(ParameterizedThreadStart)).Start|Thread.new(param1, param2) {...}|
+
|Thread.Join|Thread.join|
+
|Thread.Abort|Thread.kill, Thread.terminate|
+
|Thread.Suspend|Thread.Stop|
+
|Thread.Resume|Thread.Run|
+
|C#|Ruby|f
+

          
 
**その他・未整理
**その他・未整理
 
|C#|Ruby|h
|C#|Ruby|h
 
|Uri class|URI Module|
|Uri class|URI Module|
 
|Convert.ToBase64String|Base64.encode64|
|Convert.ToBase64String|Base64.encode64|
 
|Convert.FromBase64String|Base64.decode64|
|Convert.FromBase64String|Base64.decode64|
 
|MD5CryptoServiceProvider.ComputeHash|Digest::MD5.digest|
|MD5CryptoServiceProvider.ComputeHash|Digest::MD5.digest|
+
|SHA1CryptoServiceProvider.ComputeHash|Digest::SHA1.digest|
 
|new SmtpClient|Net::SMTP.start|
|new SmtpClient|Net::SMTP.start|
 
|new WebClient|Net::HTTP.start|
|new WebClient|Net::HTTP.start|
+
|WebClient.OpenRead|open(URI)|
 
|HttpUtility.HtmlEncode|CGI.escapeHTML|
|HttpUtility.HtmlEncode|CGI.escapeHTML|
 
|HttpUtility.HtmlDecode|CGI.unescapeHTML|
|HttpUtility.HtmlDecode|CGI.unescapeHTML|
 
|HttpUtility.UrlPathEncode|CGI.escape|
|HttpUtility.UrlPathEncode|CGI.escape|