Skip to content

Instantly share code, notes, and snippets.

View ouzdev's full-sized avatar
:octocat:
I'm burdened with writing code

Oğuz Can Genç ouzdev

:octocat:
I'm burdened with writing code
View GitHub Profile
@ouzdev
ouzdev / EFBasicCrud.cs
Last active December 12, 2019 09:35
Entity Framework Basic CRUD
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
@ouzdev
ouzdev / c#SegmentTextBySpecialCharacter.cs
Created December 15, 2019 10:05
C# segment text by special character
list.Add(text);
string temporary = "";
string main_text = "";
foreach (string item in list)
{
for (int i = 0; i < item.Length; i++)
{
temporary = item[i].ToString();
@ouzdev
ouzdev / DolarEuroConverter.cs
Last active December 16, 2019 13:46
Dolar Euro TL Çevirici
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
@ouzdev
ouzdev / ContainsMetod.cs
Created December 19, 2019 22:11
C# Contains metodunun kendi geliştirdiğim algoritma sayesindeki kullanılışı.
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
@ouzdev
ouzdev / WebCacheUsing.cs
Created December 20, 2019 07:30
.NET Web Cache sınıfının kullanılması
using MyEvernote.BusinessLayer;
using MyEvernote.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Helpers;
namespace MyEvernote.WebApp.Models
{
@ouzdev
ouzdev / asal_sayi.cs
Created December 21, 2019 08:19
Asal Sayı
for (int i = 2; i < 100; i++)
{
bool kontrol = true;
for (int j = 0; j < i; j++)
{
if (i%j==0)
{
kontrol = false;
break;
@ouzdev
ouzdev / asal_sayi_metod.cs
Created December 21, 2019 08:29
Asal sayıların metodla bulunması.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
@ouzdev
ouzdev / dort_islem_metod.cs
Created December 21, 2019 09:30
4 işlemin metod türleri ile yapılması
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
@ouzdev
ouzdev / factorial_ permutation_combination_calculator.cs
Last active December 21, 2019 10:31
Faktöriyel, Permütasyon, Kombinasyon Hesaplama
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
int[] numbers = new int[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
//LINQ sorgu sözdizimi
var query = from number in numbers
where number < 3
select number;
//LINQ metod sözdizimi
var method = numbers.Where(n => n < 3);