This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void Deneme(string filename) | |
{ | |
// variables | |
var pathin = Path.Combine( | |
Directory.GetCurrentDirectory(),"wwwroot", | |
filename); | |
string pathout = Path.Combine( | |
Directory.GetCurrentDirectory(),"wwwroot/exported", | |
filename); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace FactoryMethod.Sample2 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
// normal kullanım | |
PDFReader pdfreader = new PDFReader(); | |
pdfreader.Read(); | |
pdfreader.Extract(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Singleton.Sample10 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
IFileProcessor fileProcessor = DataProcessor.Instance; | |
var paymentFile = @"C:\Payment\out\20141204_940_159856.xml"; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
if(CheckInternetConnection()) | |
Console.WriteLine("Internet var"); | |
else Console.WriteLine("Internet yok"); | |
Console.ReadLine(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var tester = new CachedMemoryMonitor(new GcMemoryMonitor(), 5); | |
Console.ReadLine(); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Abstract Product | |
/// </summary> | |
abstract class Command { } | |
abstract class Connection { } | |
abstract class Transaction { } | |
/// <summary> | |
/// Concrete Product for Oracle | |
/// </summary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Text.RegularExpressions; | |
using System.Threading.Tasks; | |
namespace ExtentionSamples | |
{ | |
class Program |
NewerOlder