Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace MyLib
- {
- public class Class1
- {
- public static void DoSomethingEnum(ref MyEnum something)
- {
- something = something == MyEnum.SomeValue ? MyEnum.SomeOtherValue : MyEnum.SomeValue;
- }
- }
- public enum MyEnum
- {
- SomeValue,
- SomeOtherValue
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement