Please check this
https://www.codeproject.com/Questions/369024/How-to-convert-ruby-codes-into-net
Mark as Answered, if this link userful fo u ..thq