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 Newtonsoft.Json; | |
using Serialize.Linq.Extensions; | |
using Serialize.Linq.Nodes; | |
using System; | |
using System.Linq.Expressions; | |
namespace TestingLinqSerializer | |
{ | |
class Program | |
{ |
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
# $Env:SubDirectoryFilter is a custom parameter | |
$searchPath = "$Env:BUILD_SOURCESDIRECTORY\$Env:SubDirectoryFilter" | |
$shortCommit = "$Env:BUILD_SOURCEVERSION".Substring(0, 8) | |
$shortCommit = "@$shortCommit" | |
$date = [System.DateTime]::Now.ToString("s") | |
Write-Host "Searching in $searchPath" | |
Get-ChildItem -Path $searchPath -Recurse -Filter "AssemblyInfo.*" | foreach { | |
$file = $_.FullName |
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 ([^\s ]+) ([^\s]+) { get; set; } |
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 Newtonsoft.Json; | |
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Linq; | |
using System.Threading; | |
using System.Threading.Tasks; | |
namespace Good_Gaz.Services.SirsConsoleClient | |
{ |
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 static class MappingExtensions | |
{ | |
/// <summary> | |
/// Applies the specified <paramref name="transformation"/> on the <paramref name="source"/>. | |
/// </summary> | |
/// <typeparam name="TSource"></typeparam> | |
/// <typeparam name="T"></typeparam> | |
/// <param name="source"></param> | |
/// <param name="transformation"></param> | |
/// <returns></returns> |
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
/* Source: https://github.com/domaindrivendev/Swashbuckle/issues/1287 */ | |
(...) | |
config.AddSwaggerGen(options => { | |
options.DocumentFilter<SwaggerAddEnumDescriptions>(); | |
} |
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
#%HOMEPATH%\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 | |
function gitpushup { git rev-parse --abbrev-ref HEAD | foreach { git push --set-upstream origin $_ }} | |
set-alias git-pushup gitpushup | |
function gitmergedev { git rev-parse --abbrev-ref HEAD | foreach { if (git checkout develop) {git pull; git checkout $_;git merge develop; }}} | |
set-alias git-mergedev gitmergedev | |
function gitmergemas { git rev-parse --abbrev-ref HEAD | foreach { if (git checkout master) {git pull; git checkout $_;git merge master; }}} | |
set-alias git-mergemas gitmergemas |
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.Data.Entity; | |
using System.Data.Entity.Validation; | |
using System.Linq; | |
public interface IEntity | |
{ | |
int Id { get; set; } | |
} |
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.Linq; | |
namespace System.Collections.Generic | |
{ | |
public class EmptyReadOnlyDictionary<TKey, TValue> : IReadOnlyDictionary<TKey, TValue> | |
{ | |
private static readonly Lazy<IEnumerable<KeyValuePair<TKey, TValue>>> Empty = | |
new Lazy<IEnumerable<KeyValuePair<TKey, TValue>>>(Enumerable.Empty<KeyValuePair<TKey, TValue>>); | |
public IEnumerator<KeyValuePair<TKey, TValue>> GetEnumerator() => Empty.Value.GetEnumerator(); |
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 CustomMessageBoxes | |
{ | |
partial class MessageBoxWithCheckBox | |
{ | |
/// <summary> | |
/// Required designer variable. | |
/// </summary> | |
private System.ComponentModel.IContainer components = null; | |
/// <summary> |
NewerOlder