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; | |
using System.Collections.Generic; | |
using System.Data.Entity.Migrations; | |
using System.Linq; | |
using System.Reflection; | |
using System.Windows.Forms; | |
using Data.Persistence.Migrations.SeedDebug; | |
namespace Data.Persistence.Migrations |
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
#include <math.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <conio.h> | |
#include <malloc.h> | |
#include <mem.h> | |
typedef unsigned char byte; | |
typedef unsigned int word; | |
typedef unsigned long dword; |
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.ComponentModel; | |
using System.Deployment.Application; | |
using System.Windows.Forms; | |
using LaBoutiqueDelHogar.GestionPedidos.Forms; | |
using LaBoutiqueDelHogar.Tools; | |
namespace LaBoutiqueDelHogar.GestionPedidos.Tools | |
{ | |
public static class ClickOnceUpdate |
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 AutoMapper; | |
using AutoMapper.QueryableExtensions; | |
namespace AutomapperTestCtor | |
{ | |
public class ClassA | |
{ |
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
/* | |
Jcl: generated using LinqPad | |
void Main() | |
{ | |
var text = File.ReadAllText(@"<path-to-blazor-project>\wwwroot\lib\fontawesome-pro\css\all.css"); | |
var allMatches = Regex.Matches(text, @"^\.fa\-(.*):", RegexOptions.Multiline); | |
var ti = new CultureInfo("en-US",false).TextInfo; | |
"public partial class Icon".Dump(); | |
"{".Dump(); |
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
@page "/" | |
@using System.Globalization | |
<h1>Blazor culture</h1> | |
<p> | |
@_dateTime.ToString()<br /> | |
@_decimalNumber.ToString("N4");<br /> | |
</p> | |
<h1>Specific culture</h1> |
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 class DbResultStream : LifetimedStream | |
{ | |
public DbResultStream(Stream originalStream, IDbConnection connection, IDataReader dataReader) : base(originalStream) | |
{ | |
AddDisposable(dataReader); | |
AddDisposable(connection); | |
} | |
} | |
public class LifetimedStream : StreamWrapper |
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 class Guard | |
{ | |
private int _guardValue = 0; | |
public bool Once() => Interlocked.Exchange(ref _guardValue, 1) == 0; | |
public void Reset() => Interlocked.Exchange(ref _guardValue, 0); | |
} |