Une collection de ressources, outils et exemples autour de GitHub Copilot
🔗 https://github.com/github/awesome-copilot
Optimisez vos prompts et découvrez de nouvelles approches pour Copilot
Une collection de ressources, outils et exemples autour de GitHub Copilot
🔗 https://github.com/github/awesome-copilot
Optimisez vos prompts et découvrez de nouvelles approches pour Copilot
| using System; | |
| using System.Reflection; | |
| using System.Linq; | |
| // - Récupération de toutes les classes implémentant IRule | |
| // - Instanciation de ces classes et caste en IRule | |
| // - Ordonner selon la Priorité | |
| var rules = Assembly.GetExecutingAssembly() | |
| .GetTypes() | |
| .Where(type => typeof(IRule).IsAssignableFrom(type) |
| public interface IGenerateId | |
| { | |
| Guid Generate(); | |
| } | |
| public class UUIDGenerator : IGenerateId | |
| { | |
| public Guid Generate() => Guid.NewGuid(); | |
| } |
| public class CreateUser | |
| { | |
| public class User | |
| { | |
| public Guid Id { get; } | |
| public string Name { get; } | |
| public User(Guid id, string name) | |
| { | |
| Id = id; | |
| Name = name; |
| public class SynchronizeInventory | |
| { | |
| private readonly InventoryApiClient _client; | |
| private readonly IMapper _mapper; | |
| public SynchronizeInventory(InventoryApiClient client, IMapper mapper) | |
| { | |
| _client = client; | |
| _mapper = mapper; | |
| } |
| using Microsoft.EntityFrameworkCore; | |
| using System; | |
| using System.Threading.Tasks; | |
| namespace DomainModelLayer | |
| { | |
| public class User | |
| { | |
| public Guid Id { get; } | |
| public string FirstName { get; } |
| using ApplicationLayer; | |
| using Microsoft.EntityFrameworkCore; | |
| using System; | |
| using System.ComponentModel.DataAnnotations; | |
| using System.Threading.Tasks; | |
| namespace DomainModelLayer | |
| { | |
| public class User | |
| { |
| using System; | |
| using System.Collections.Concurrent; | |
| using System.Threading.Tasks; | |
| namespace PurchaseApp | |
| { | |
| public class Purchase | |
| { | |
| public int Id { get; } | |
| public string Description { get; } |
| Param ( | |
| [string]$versionNumber = "1.0.0.0" | |
| ) | |
| $buildConfiguration = "Release" | |
| # Dossier à partir duquel le script est lancé | |
| $solutionDir = $PSScriptRoot | |
| $buildArtefacts = "$solutionDir/buildArtefacts" |