Skip to content

Instantly share code, notes, and snippets.

View masaru-b-cl's full-sized avatar

TAKANO Sho / @masaru_b_cl masaru-b-cl

View GitHub Profile
@masaru-b-cl
masaru-b-cl / AreasDataSet.cs
Created April 4, 2012 07:26
ODP.NETのTableAdapterで独自の接続文字列を設定する方法
namespace OriginalConnectionStringTest.Dao
{
public partial class AreasDataSet
{
}
namespace AreasDataSetTableAdapters
{
public partial class H_AREATableAdapter
{
@masaru-b-cl
masaru-b-cl / OracleExecutor.cs
Created April 5, 2012 08:18
OracleExecutorのテスト
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Codeplex.Data;
using Oracle.DataAccess.Client;
using System.Diagnostics.Contracts;
namespace ConsoleApplication1
{
@masaru-b-cl
masaru-b-cl / Program.cs
Created April 6, 2012 04:11
My LimitedString implements
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
@masaru-b-cl
masaru-b-cl / Program.cs
Created April 6, 2012 04:16
My LimitedString with implicit cast to string
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
@masaru-b-cl
masaru-b-cl / BindingSourceExtensions.cs
Created April 11, 2012 02:33
BindingSourceのカレント行の項目を型安全にを取得するためのヘルパ拡張メソッド
using System;
using System.Data;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public static class BindingSourceExtensions
{
public static T GetCurrent<T>(this BindingSource bs) where T : class
{
@masaru-b-cl
masaru-b-cl / TraditionalMVCForm.cs
Created April 18, 2012 05:24
古典MVCなBMI計算アプリ
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace BMICalculator
@masaru-b-cl
masaru-b-cl / ViewModelBase.cs
Created April 19, 2012 08:17
IDataErrorInfo.Errorプロパティで、各項目のエラーがあったらそのエラーメッセージを連結して返すとか色々
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
namespace IDataErrorTestApp
{
public abstract class ViewModelBase : IDataErrorInfo
{
@masaru-b-cl
masaru-b-cl / Program.cs
Created April 24, 2012 05:58
コレクション初期化子のコンパイルが通る自作クラスの条件
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
namespace ConsoleApplication1
{
class Program
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Threading;
using System.Collections.Concurrent;
namespace ConsoleApplication1
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Threading;
using System.Collections.Concurrent;
namespace ConsoleApplication1
{