.


:




:

































 

 

 

 


. System.Int32 V System.String : 119




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 : __

, __ . .





:


: 2016-12-03; !; : 329 |


:

:

, , . , .
==> ...

1585 - | 1422 -


© 2015-2024 lektsii.org - -

: 0.01 .