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
<p> | |
<div> | |
<input type="text" @bind="Text1" /> | |
Text1: [@Text1] | |
</div> | |
</p> | |
<p> | |
<div> | |
<input type="text" @bind="Text2" @bind:event="oninput" /> |
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 StudyOfSystemTextJson | |
{ | |
public class Person | |
{ | |
public string Name { get; } | |
public int Age { get; } | |
public Person(string name, int age) | |
{ |
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
<div> | |
@foreach (var person in this.People) | |
{ | |
<div @key="person.Id"> | |
<input type="text" placeholder="名前" @bind="person.Name" /> | |
<input type="number" placeholder="年齢" @bind="person.Age" /> | |
<button @onclick="()=>OnClickRemove(person)">削除</button> | |
</div> | |
} | |
</div> |
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
import { Component, NgZone, OnInit, OnDestroy } from '@angular/core'; | |
import { HubConnectionBuilder, HubConnection, LogLevel, JsonHubProtocol } from '@aspnet/signalr'; | |
import { Subject } from 'rxjs/Subject'; | |
import { Subscription } from 'rxjs/Subscription'; | |
@Component({ | |
selector: 'app-counter-component', | |
templateUrl: './counter.component.html' | |
}) | |
export class CounterComponent implements OnInit, OnDestroy { |
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
# パスチェック | |
# カレントディレクトリにWebDriver.dllとchromedriver.exeがある前提 | |
if ( -not (Test-Path -LiteralPath '.\WebDriver.dll')) { | |
Write-Error 'WebDriver.dllがありません。' | |
return | |
} | |
if ( -not (Test-Path -LiteralPath '.\chromedriver.exe')) { | |
Write-Error 'chromedriver.exeがありません。' | |
return | |
} |
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.Diagnostics; | |
using System.Linq; | |
public interface IFoo | |
{ | |
// NOTICE: without "params" keyword. | |
void DoIt(object[] args); | |
} |
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
[CmdletBinding()] | |
Param( | |
[int]$Port = 7071 | |
) | |
DynamicParam { | |
$sdkOutFile = Get-ChildItem functionsSdk.out -Recurse | Sort-Object -Property LastWriteTimeUtc -Descending | Select-Object -First 1 | |
if ($sdkOutFile -eq $null) { | |
Write-Host "Couldn't find `"functionsSdk.out`" file." -ForegroundColor Yellow |
This is C# code for .NET Core application.
This code provides BodyNamePatchedEncoding
Encoding class for wrapping other encoding object
to avoid raising "System.NotSupportedException : No data is available for encoding ????".
This exception is sometimes raised when using the encoding object that is in System.Text.Encoding.CodePages NuGet package, because those encoding classes don't implement "BodyName" and "HeaderName" property.
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; | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Console.Clear(); | |
Console.WriteLine($"Enter digit numbers ({int.MinValue}~{int.MaxValue})."); |
NewerOlder