the essential demonstrated concepts can be adapted to your case and can also be used for C# when the statements are modified:
the essential demonstrated concepts can be adapted to your case and can also be used for C# when the statements are modified: