This file contains hidden or 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 class Compiler | |
{ | |
/// <summary> | |
/// Compile all the projects of the solution | |
/// </summary> | |
public void Compile(Solution solution) | |
{ | |
foreach (var project in solution.Projects) | |
{ | |
Compile(project); |
This file contains hidden or 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 readonly struct Result<T> | |
{ | |
public Result(T value) | |
{ | |
IsSuccess = true; | |
Value = value; | |
Exception = null; | |
} | |
public Result(Exception e) |
This file contains hidden or 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlsn="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title>TC NO Üreticisi</title> | |
<meta http-equiv="content-type" content="text/html" charset="utf-8" /> | |
<meta http-equiv="Cache-Control" content="no-cache" /> | |
<meta http-equiv="Pragma" content="no-cache" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> |
This file contains hidden or 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 static class DbContextExtensions | |
{ | |
public static IEnumerable<dynamic> SqlQuery(this DbContext dbContext, string Sql, Dictionary<string, object> Parameters = null) | |
{ | |
using (var cmd = dbContext.Database.Connection.CreateCommand()) | |
{ | |
cmd.CommandText = Sql; | |
if (cmd.Connection.State != ConnectionState.Open) | |
cmd.Connection.Open(); |
This file contains hidden or 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
HTML: | |
<a class="js-open-modal" href="#" data-modal-id="popup">Click Me</a> | |
<div id="popup" class="modal-box"> | |
<header> | |
<a href="#" class="js-modal-close close">×</a> | |
<h3><a href="http://www.jqueryscript.net/tags.php?/Modal/">Modal</a> Title</h3> | |
</header> | |
<div class="modal-body row"> |
This file contains hidden or 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 static IPlugin LoadPlugin(string dllPath) | |
{ | |
var dllBytes = File.ReadAllBytes(dllPath); | |
var an = AssemblyName.GetAssemblyName(dllPath); | |
var assembly = Assembly.Load(dllBytes); | |
var pluginType = typeof(IPlugin); | |
foreach(Type type in assembly.GetTypes()) | |
{ | |
if(!type.IsInterface && !type.IsAbstract) | |
{ |