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 abstract class 顧客区分{ | |
private String 区分名; | |
private int デフォルト料金; | |
protected 料金 my料金object; | |
public 顧客区分(料金 料金object){ | |
my料金object=料金object; | |
} |
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
void fb(int n) { | |
if (n == 0) return; | |
fb(n - 1); | |
if(n%15==0){ | |
print("FizzBuzz"); | |
}else if(n%5==0){ | |
print("Buzz"); | |
}else if(n%3==0){ | |
print("Fizz"); |
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
//改行コード付きのテキストデータ | |
var textReturnCode = WebDriver.FindElement(By.TagName("textarea")).GetAttribute("value"); | |
//改行コードなしのテキストデータ | |
var textNonReturnCode = WebDriver.FindElement(By.TagName("textarea")).Text; |
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
var list=new List<string> | |
{ | |
"リンゴ", | |
"オレンジ", | |
"パイナップル" | |
}; | |
//toDictionary(int,string)に変換 | |
var dic = list.Select((n, index) => new { index, n}) |
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
int[] array = { 1, 10, 30, 40, 50, 70, 80, 90 }; | |
//50以上の値の数(for) | |
int count = 0; | |
for (int i = 0; i < array.Length; i++) | |
{ | |
if (array[i] >= 50) | |
{ | |
count++; | |
} |
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
Dim Array() As Integer = {1, 10, 30, 40, 50, 70, 80, 90} | |
'50以上の値の数(for) | |
Dim Count As Integer | |
Dim I As Long | |
For I = 0 To Array.Length - 1 | |
If Array(I) >= 50 Then | |
Count = Count + 1 | |
End If | |
Next |
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 UnityEngine; | |
using System.Collections; | |
public class MarioController: MonoBehaviour { | |
float WalkSpeed=3.0f; //歩く速度 | |
float Gravity=20.0f; //重力係数 | |
float JumpSpeed=8.0f; //ジャンプ加速度 | |
private Vector3 velocity; //現在の速度 | |
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
Option Explicit | |
'VbLiteUnitを読み込みます | |
Implements ITestCase | |
Private Function ITestCase_TestCaseInstance() As ITestCase | |
Dim objResult As New ClassTest '自テストClass名を記載 | |
Debug.Assert TypeName(objResult) = TypeName(Me) | |
Set ITestCase_TestCaseInstance = objResult | |
End Function |
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 System.Text; | |
using System.ComponentModel; | |
using System.Reflection; | |
namespace EnumDescriptionSample | |
{ | |
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
using (SPSite site = new SPSite(context.SiteUrl)) | |
using (var web = site.OpenWeb(context.WebUrl)) | |
{ | |
var list = web.Lists[context.ListId]; | |
var item = list.Items.GetItemById(itemId); | |
var value = item["フィールド名"]; //ここで例外が発生 | |
} |
OlderNewer