var array = new int[] { 1, 2, 3 };foreach(var a in array){
Console.WriteLine($”Value is {a}”);
}var enumerator = array.GetEnumerator();while (enumerator.MoveNext()){
Console.WriteLine($”Enumerator value is {enumerator.Current}”);




Computer Engineer, Software Developer

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

The 8 Minute Guide to Push Notifications in Progressive Web Apps

Removing non visible views from the DOM while still being able to alter their state

JavaScript Never been so easy!!!

Mutating JS Strings

Someone coding

Turn all your components functional with useState() hook

The XMLHttpRequest Definitive guide

Why Does ExtendScript Think My Number is a String?

Closure in JS — It’s not you, it’s me.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Taşkın Binbir

Taşkın Binbir

Computer Engineer, Software Developer

More from Medium

Design Patterns — Chain of Responsibility Pattern

Microservice QA

WP1: The Complexities of Code Switching and Country Music