C# Dictionary Code Examples

// Create a new dictionary of strings, with string keys. // Dictionary<string, string> openWith = new Dictionary<string, string>(); // Add some elements to the dictionary. There are no // duplicate…

?: operator

test ? yes : no simply means if test is bool either true or false. if test is true, yes will be used if test is false then no will…

Setup conditional debugging system in Unity3d

What i wish to achieve Allowing to disable selected types of debug in different levels Such as DEBUG_LEVEL_LOG DEBUG_LEVEL_WARN DEBUG_LEVEL_ERROR Setup different types of the debug messages Debug.log Debug.error Debug.warning…