Created
November 20, 2010 16:57
-
-
Save rippinrobr/707955 to your computer and use it in GitHub Desktop.
my method to set up creating a method with the CodeDom
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def basic_method(name, return_type, attrs = MemberAttributes.Public) | |
method = CodeMemberMethod.new | |
method.Attributes = attrs | |
method.Name = name | |
method.ReturnType = return_type | |
method | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment