Runtime error
Ushbu dasturda T qachon haqiqiy turga almashtiriladi ?
class ValueProcessor {
//Amalga oshirish
}
Compile-Time
Run time
Debugging time
Never
Quyidagi umumiy cheklovlardan qaysi biri IEnumerable interfeysini amalga oshiradigan sinf ob'ekti uchun umumiy turdagi parametrni cheklaydi
class Processor where T: IEnumerable
class Processor where T: class: IEnumerable
class Processor where T: interface: IEnumerable
class Processor where T: new()
Ushbu dastur ishlashi natijasida ekranda qanday natija hosil bo’ladi?
ValueTuple person = (1, “Tom”);
Console.Write(person.Item2);
Tom