Advertisement
TSorbera

Untitled

Jan 15th, 2014
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.47 KB | None | 0 0
  1. >>> import clr
  2. >>> clr.AddReference('MyLib')
  3. <System.Reflection.RuntimeAssembly object at 0x000000001BAE0188>
  4. >>> from MyLib import *
  5. >>> m = MyEnum.SomeValue
  6. >>> m
  7. 0
  8. >>> m = Class1.DoSomethingEnum(m)
  9. >>> m
  10. 1
  11. >>> m = Class1.DoSomethingEnum(m)
  12. >>> m
  13. 0
  14.  
  15. >>> Class1.DoSomethingEnum(0)
  16. 1
  17. >>> Class1.DoSomethingEnum(1)
  18. 0
  19. >>> Class1.DoSomethingEnum(2)
  20. Traceback (most recent call last):
  21.   File "<stdin>", line 1, in <module>
  22. TypeError: No method matches given arguments
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement