Answers for "class of a type c#"

C#
1

csharp type sub class of

using System;

public class Class1 { }
public class DerivedC1 : Class1 { }

class IsSubclassTest
{
   public static void Main()
   {
      Console.WriteLine("DerivedC1 subclass of Class1: {0}",
                         typeof(DerivedC1).IsSubclassOf(typeof(Class1)));
   }
}
// The example displays the following output:
//        DerivedC1 subclass of Class1: True
Posted by: Guest on September-23-2020
1

classes c#

public class x
    {
		(condition)
    }
Posted by: Guest on December-09-2020

C# Answers by Framework

Browse Popular Code Answers by Language