developer

C# naming convention for constants?

Question: ❓❓❓ private const int THE_ANSWER = 42; or private const int theAnswer = 42; Personally I think with modern IDEs we should go with camelCase as ALL_CAPS looks strange. What do you think? Good Answer: 👌👌👌 The recommended naming and capitalization convention is to use Pascal casing for constants Read more…

By admin, ago
developer

Running the new Intel emulator for Android

Question: ❓❓❓ Lately Google and Intel have published a new way to run the emulator, which should work much better than the previous version (which has emulated ARM CPU). Here are some links about it: this and this. However, after installing the new components and creating a new emulator configuration Read more…

By admin, ago
developer

C# List to string with delimiter

Question: ❓❓❓ Is there a function in C# to quickly convert some collection to string and separate values with delimiter? For example: List<string> names –> string names_together = "John, Anna, Monica" Good Answer: 👌👌👌 You can use String.Join. If you have a List<string> then you can call ToArray first: List<string> Read more…

By admin, ago