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
| class Program | |
| { | |
| static async Task Main(string[] args) | |
| { | |
| var cts = new CancellationTokenSource(); | |
| var client = new HttpClient(); | |
| var url = "https://localhost:44399/weatherforecast"; | |
| Task.WhenAll( |
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
| namespace ConsoleApp1 | |
| { | |
| public class Hoge | |
| { | |
| public static int Int; | |
| public static Fuga Fuga; | |
| static Hoge() | |
| { | |
| Int = 10; |
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
| //C#でインターフェイスを作成 | |
| namespace CSLibBase | |
| { | |
| public interface ISample | |
| { | |
| int SampleMethod(int x); | |
| } | |
| } | |
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 interface IRepository<TEntity> where TEntity : class | |
| { | |
| TEntity Find(params object[] keyValues); | |
| } | |
| public abstract class Repository<TContext, TEntity> : IRepository<TEntity> | |
| where TContext : DbContext, new() | |
| where TEntity : class | |
| { | |
| protected TContext _context; |