33
1
using System;
2
using System.IO;
3
4
public class Program
5
{
6
public static void Main()
7
{
8
Console.WriteLine("--------BEGIN--------");
9
10
FIVan van = new FIVan();
11
van.DisplayType();
12
13
Console.WriteLine("---------END---------");
14
}
15
}
16
17
public interface IVan
18
{
19
public Type TheType {get;}
20
public void DisplayType() => Console.WriteLine("Generic Type associated with this IVan<T> is : " + TheType.ToString());
21
}
22
23
public abstract class AVan<T> : IVan
24
where T : class//, IEquatable<T>
25
{
26
public Type TheType { get => typeof(T);}
27
public void DisplayType() => ((IVan)this).DisplayType();
28
}
29
30
public class FIVan : AVan<FileInfo>
31
{
32
33
}
Cached Result
enter dimensions of parcel (L,W,H) and weight of parcel
length:
>
length: