ブログ@kaorun55

HoloLensやKinectなどのDepthセンサーを中心に書いています。

2009-06-22から1日間の記事一覧

ジェネリッククラスで型指定をしつつ継承もする

ぱっと調べて見つからなかったので備忘録。 普通の継承 class Derived : Base ジェネリック型パラメータの制約 class Derived<T> where T : Type, new() 両方 class Derived<T> : Base where T : Type, new() 構文 class Derived<T> : <ベースクラス名> where T : <制</t></t></t>…