Showing posts with label Using Typeof Operator in C#. Show all posts
Showing posts with label Using Typeof Operator in C#. Show all posts

Friday, June 14, 2013

Using Typeof Operator in C#

Using typeof

// Demonstrate typeof.
using System;
using System.IO;
class UseTypeof {
static void Main() {
Type t = typeof(StreamReader);
Console.WriteLine(t.FullName);
if(t.IsClass) Console.WriteLine("Is a class.");
if(t.IsAbstract) Console.WriteLine("Is abstract.");
else Console.WriteLine("Is concrete.");
}
}
This program outputs the following:
System.IO.StreamReader
Is a class.
Is concrete.

AngularJS Basics - Part 1

                                                                  AngularJS What is AngularJS ·          Framework by googl...