Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> import clr
- >>> clr.AddReference('MyLib')
- <System.Reflection.RuntimeAssembly object at 0x000000001BAE0188>
- >>> from MyLib import *
- >>> m = MyEnum.SomeValue
- >>> m
- 0
- >>> m = Class1.DoSomethingEnum(m)
- >>> m
- 1
- >>> m = Class1.DoSomethingEnum(m)
- >>> m
- 0
- >>> Class1.DoSomethingEnum(0)
- 1
- >>> Class1.DoSomethingEnum(1)
- 0
- >>> Class1.DoSomethingEnum(2)
- Traceback (most recent call last):
- File "<stdin>", line 1, in <module>
- TypeError: No method matches given arguments
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement