IronRuby in C # to implement the tree structure display of Ruby class related information

Source: Internet
Author: User
Tags implement

First, the preface

IronRuby is a ruby implementation in. NET, and ruby.net this Open-source project, the main difference is that IronRuby leverages Microsoft's newest DLR, while Ruby.net is fully leveraging the original CLR implementations. IronRuby can be found in http://msdn.microsoft.com/zh-cn/magazine/dd434651.aspx. Some basic operations on IronRuby, which are not covered in this article, are just a concrete example of IronRuby to Ruby operations. This includes the tree structure for the class name of all Ruby classes, the method name, and the fetch and display of the parameter list. The reason for this is to use IronRuby to operate, mainly because the reflection of Ruby can get to the list of Ruby method names, but not to get the parameter list and parameter name of the method. This article is for reference only, because I also ironruby contact is not very long, basically is groping out, will inevitably have the wrong place.

Second, class diagram design

The related class diagram is designed as follows, in which Rubyscriptengine is mainly responsible for acquiring and constructing the related class name, method name and parameter list, and the correlation between the IronRuby. Treedrawer is mainly responsible for the design of the class name, method name and parameter list corresponding to the tree-shaped chart.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.