Advertisement
TSorbera

Untitled

Jan 15th, 2014
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.32 KB | None | 0 0
  1. namespace MyLib
  2. {
  3.     public class Class1
  4.     {
  5.         public static void DoSomethingEnum(ref MyEnum something)
  6.         {
  7.             something = something == MyEnum.SomeValue ? MyEnum.SomeOtherValue : MyEnum.SomeValue;
  8.         }
  9.     }
  10.     public enum MyEnum
  11.     {
  12.         SomeValue,
  13.         SomeOtherValue
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement