using System;
public class Program
{
public static void Main()
var myObj = new CA();
var xyz = new { A = "123" };
if (myObj is ICA)
Console.WriteLine("Y");
}
else
Console.WriteLine("N");
if (xyz is ICA)
public interface ICA
string A {get;set;}
public class CA : ICA
public string A {get;set;}