Open in app

Sign In

Write

Sign In

Taşkın Binbir
Taşkın Binbir

16 Followers

Home

About

Mar 2

How to use the ternary operator in the project?

Hello everybody, I want to give an example to you of ternary operators. We have a value, and that type is a string. If this value is empty by then we want to give to special value, we can use the quick method with the ternary operator. string mystring = “”; mystring != "" ? mystring : "special value" What do I want to tell? We need a function to use for the whole project. public static string IfEmpty(this string str, string str2) { return str?.Length == 0 ? str : str2; }

Programming

1 min read

How to use the ternary operator in the project?
How to use the ternary operator in the project?
Programming

1 min read


Feb 11

How to use mssql on MacBook m1 (with docker)?

Hello guys, How to use mssql on MacBook m1? I gonna explain that with a small example. I needed a database but mssql while creating an application on m1 macos. I created a pretty small docker compose even was enough when I completed the application because I used to mssql configuration. If we need an mssql on a dotnet project we can simply use “mcr.microsoft.com/mssql/server:2019-latest” but when you are using m1, you need “mcr.microsoft.com/azure-sql-edge”.

Docker

1 min read

How to use mssql on MacBook m1 (with docker)?
How to use mssql on MacBook m1 (with docker)?
Docker

1 min read


Jun 6, 2022

Singleton Design Pattern

The Singleton Design Pattern is one of the creational design patterns. Singleton pattern is the simplest design pattern to other design patterns and one of the most popular design patterns. This type of design pattern is a creational pattern as this pattern provides creates an object. …

C Sharp Programming

1 min read

C Sharp Programming

1 min read


May 1, 2022

How to use better GroupBy in LINQ ?

How to use better GroupBy in LINQ ? Hello everbody, We often use LINQ. It is a very advanced query technology. I want to explain with one example. First of all, our models; public class UpdateBasketRequest { public string BuyerId { get; set; } public IEnumerable<UpdateBasketRequestItemData> Items { get; set…

Dotnet

2 min read

How to use better GroupBy in LINQ ?
How to use better GroupBy in LINQ ?
Dotnet

2 min read


Apr 24, 2022

Creational Design Patterns

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 are further categorized into object-creational patterns and class-creational patterns

Design Patterns

1 min read

Creational Design Patterns
Creational Design Patterns
Design Patterns

1 min read


Feb 27, 2022

Extended Swagger in .net core 6

Hello everybody, I am going to tell frequently used extended swagger features in this article. The main contents of this article are as follows; summary, remarks, responses. How and why to use ProducesResponseType attribute ? Firstly, I start with response. We have many http status code. The first things that…

Swagger

2 min read

Extended Swagger in .net core 6
Extended Swagger in .net core 6
Swagger

2 min read


Jan 23, 2022

What is Enumerables ? (part 2)

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}”); } In the above example, We have a array and we make the array enumerable with GetEnumerator() function. We use MoveNext() to get next value and we print next value with “Current” keyword.

1 min read

1 min read


Jan 2, 2022

How memory is managed by Stack and Heap

Stack is used for static memory allocation and Heap for dynamic memory allocation. These are two areas that both are kept in ram. The stack is always reserved in a LIFO (last in first out) order. The stack is memory set aside for static allocation. Value types (bool, int, float…

Programming

1 min read

Programming

1 min read


Dec 25, 2021

What are the differences between enum and class ?

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 } Basic enum method sample, following,

Programming

1 min read

What are the differences between enum and class ?
What are the differences between enum and class ?
Programming

1 min read


Dec 22, 2021

What is Enumerables ?

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"; yield return "Mercedes"; yield return "Audi"; } } By debugging this example, you can see that the returns are coming one by one.

C Sharp Programming

1 min read

C Sharp Programming

1 min read

Taşkın Binbir

Taşkın Binbir

16 Followers

Computer Engineer, Software Developer

Following
  • Juan Alberto España Garcia

    Juan Alberto España Garcia

  • The Educative Team

    The Educative Team

  • Mehmet Ozkaya

    Mehmet Ozkaya

  • Maximiliano Contieri

    Maximiliano Contieri

  • Jaydeep Patil

    Jaydeep Patil

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech