System.Int32 V System.String : 119
:
, TwoGen.
class TwoGenCT, V> {
V, . TwoGen , , .
TwoGenCint, string> tgObj =
new TwoGenCint, string>(119, " ");
int, V string.
, . , .
TwoGencstring, string> =
new TwoGencstring, string>("Hello", "Goodbye");
, V, , string. , , .
, , . .
class _<__> { //...
.
_<__> _ =
new _<__> (__);
. , , .
class Gen<T> {
, Gen, int, double, string, FileStream . , , .
, , , FileStream MemoryStream. , , - , , int . , - , , , . , - , Read ().
^ C# . , . where :
class _<_> where _: { //...
|
|
.
C# .
, . . , , . .
, . .
, . new ().
, class.
, struct.
, . .
, . . -, , . , , . , . , , , .
-, , . , , , . , , . /
, where:
where : __
, __ . .