I am just curious if this is possible or is there a way for this to become a valid syntax for C#:
expression == value ? /*do nothing here, or put some empty block like { ; } */ : SomeClass.SomeMethod();
Edit: For an in-depth discussion and more information, I thought this block would work (if the dictionary key tested does not exist, it adds the dictionary. else, it would skip):
(!packageDict.ContainsKey(desc)) ? packageDict.Add(desc, subtotal) : /*does nothing*/;