Skip to content

Instantly share code, notes, and snippets.

View yemrekeskin's full-sized avatar
🎯
Focusing

yunus emre keskin yemrekeskin

🎯
Focusing
View GitHub Profile
public void Deneme(string filename)
{
// variables
var pathin = Path.Combine(
Directory.GetCurrentDirectory(),"wwwroot",
filename);
string pathout = Path.Combine(
Directory.GetCurrentDirectory(),"wwwroot/exported",
filename);
using ComManager.Models;
using Dapper;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
namespace ComManager.Repository
{
using ComManager.Models;
using Dapper;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
namespace ComManager.Repository
{
namespace FactoryMethod.Sample2
{
class Program
{
static void Main(string[] args)
{
// normal kullanım
PDFReader pdfreader = new PDFReader();
pdfreader.Read();
pdfreader.Extract();
namespace Singleton.Sample10
{
class Program
{
static void Main(string[] args)
{
IFileProcessor fileProcessor = DataProcessor.Instance;
var paymentFile = @"C:\Payment\out\20141204_940_159856.xml";
namespace Singleton.Sample1
{
class Program
{
static void Main(string[] args)
{
var myFirstObject = Singleton.Instance();
var mySecondObject = Singleton.Instance();
var myThirdObject = Singleton.Instance();
//var myFourthObject = new Singleton();
@yemrekeskin
yemrekeskin / CheckInternetConnection.cs
Created March 5, 2015 07:35
Check Internet Connection with c#
class Program
{
static void Main(string[] args)
{
if(CheckInternetConnection())
Console.WriteLine("Internet var");
else Console.WriteLine("Internet yok");
Console.ReadLine();
@yemrekeskin
yemrekeskin / GcMemoryMonitor.cs
Created February 9, 2015 13:55
GcMemoryMonitor
class Program
{
static void Main(string[] args)
{
var tester = new CachedMemoryMonitor(new GcMemoryMonitor(), 5);
Console.ReadLine();
}
}
/// <summary>
/// Abstract Product
/// </summary>
abstract class Command { }
abstract class Connection { }
abstract class Transaction { }
/// <summary>
/// Concrete Product for Oracle
/// </summary>
@yemrekeskin
yemrekeskin / ExtentionSamples.cs
Created December 16, 2014 12:17
ExtentionSamples
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace ExtentionSamples
{
class Program