Last active
August 29, 2015 14:26
-
-
Save scriptnull/eb5683435881a4aa0e02 to your computer and use it in GitHub Desktop.
This is a snippet that supplements http://scriptnull.github.io/foreachline/#/ . usage: public int apple ; or public int apple { get; set;} ; gets converted into oldObject.apple = newObject.apple;
This file contains hidden or 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
| if(line.indexOf('[') > 0 || line == ''){ | |
| line = ""; | |
| }else{ | |
| line = line.trimLeft().split(' ')[2]; | |
| line = "oldBook." + line + " = " + "book." + line; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment