Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- public class MijnKlasse {
- public string a = "b";
- public string b => "c";
- public string c {get;set;}
- public MijnKlasse(string val="d"){
- c = val;
- }
- }
- public class Program
- {
- public static void Main()
- {
- MijnKlasse instantie = new MijnKlasse();
- Console.WriteLine(instantie.GetType().IsClass); // 1
- Console.WriteLine(typeof(MijnKlasse) == typeof(object)); // 0
- Console.WriteLine(instantie.GetType() == typeof(object)); // 0
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment