Hello folk,

I gonna give information about creational design patterns. I gonna explain design patterns in creational design patterns.

What is creational design patterns ?

Creational design patterns are design patterns that deal with object creation. Creational design provide patterns controlling object creation when basically object creation. Creational design patterns…

--

--

Hello folks,

I gonna show a few features on an example in this article with .net core 6 console.

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}”);
}

--

--

Hello everbody,

An enum, just like a class, have attributes and methods.
An Enum constants are always public static and final.
Some uses of enums are like month days, days, colors and more.

Basic enum DescriptionAttribute sample, following,

public enum Colors{[Description("Red")]Red,[Description("White")]White,[Description("Blue")]Blue,[Description("Green")]Green

--

--

Enumeration is in c#, also that is iteration in other languages. So, Enumeration is actually iteration.

A quick sample, following;

class Program{static void Main(string[] args){Program p = new Program();foreach(var c in p.GetCars()){Console.WriteLine(c);}Console.ReadLine();}IEnumerable<string> GetCars(){  yield return "BMW";

--

--