72
1
using System;
2
using System.Collections.Generic;
3
4
public class Program
5
{
6
public static void Main()
7
{
8
9
#region Assignment compatibility
10
11
string str = "Test";
12
13
//An object of a more derived type is assigned to an object of a less derived type.
14
object obj1 = str;
15
16
#endregion Assignment compatibility
17
18
19
20
#region Covariance (Array)
21
22
object[] array = new String[10];
23
24
//But this operation is not type safe
Cached Result