Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. System.Reflection.Assembly.GetExecutingAssembly().DefinedTypes(n).BaseType.FullName
  2.  
  3. int N1, N2, N3;
  4. // N1, N2, & N3 are all zero
  5. for (int i = 1; i < 4; i++){
  6. Indirect("N" + i.toString) = 100
  7. }
  8. // N1, N2, & N3 are now all 100
  9.  
  10. public String listVars(){
  11. Object input[] = {var1, var2, var3, var4, var5}; // list of vars
  12. String output = ""; // output catcher
  13. int varCount = input.length; // get the length of the array
  14. for (int i = 0; i < varCount; i++){ // loop through the array
  15. output += """ + input[i] + """; // surround with quotes, append to output
  16. if (i < varCount-1){ // if the item NOT the last...
  17. output += ","; // append a comma to it
  18. }
  19. }
  20. return output; // return completed output
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement