Skip to content

Instantly share code, notes, and snippets.

:octocat:

Tarik Guney tarikguney

:octocat:
Block or report user

Report or block tarikguney

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tarikguney
tarikguney / account-checker-interface-medium.cs
Created Jan 31, 2017
Account Checker Interface - Medium
View account-checker-interface-medium.cs
public interface IAccountChecker
{
bool Exists(AccountNumber accountNumber);
}
public class DatabaseAccountChecker: IAccountChecker {}
public class AzureAccountChecker: IAccountChecker {}
public class XmlAccountChecker: IAccountChecker {}
View account-checker-simple-class.cs
public class AccountChecker
{
public bool Exists(AccountNumber accountNumber)
{
CheckIfValidAccountNumber(accountNumber);
var accountInformation = GetAccount(accountNumber);
return accountInformation != null;
}
private void CheckIfValidAccountNumber(AccountNumber accountNumber)
@tarikguney
tarikguney / reference-finder.cs
Last active Dec 9, 2016
Finding all references in a solution
View reference-finder.cs
/*
Author: Tarik Guney <atarikguney@gmail.com>
GitHub: https://github.com/atarikguney
This class will read a given .sln file and find all the .csproj it has,
and will find the assemblies referenced from within those .csproj files,
and save them to the given text file path.
*/
public class AssemblyNameLister
{
You can’t perform that action at this time.