what is the use of "typeof" in c#.net

Posted by Fundaravi under C# on 5/11/2012 | Points: 10 | Views : 8678 | Status : [Member] | Replies : 4
what is the typeof keyword and what is the definitions.. give me one exaple

Ravindra


Responses

Posted by: Sakthi.Singaravel on: 5/11/2012 [Member] Silver | Points: 25

Up
0
Down
Refer this...

http://www.dotnetperls.com/typeof

Regards,
Singaravel M

Fundaravi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Kavi.Sirius on: 5/11/2012 [Member] Starter | Points: 25

Up
0
Down
hi
Refer this link,

http://www.java2s.com/Tutorial/CSharp/0060__Operator/0320__typeof.htm

Regards
Kavi.n

Fundaravi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: perfectchourasia-9163 on: 6/8/2012 [Member] Starter | Points: 25

Up
0
Down
http://www.dreamincode.net/forums/topic/187676-typeof-in-c%23/

ER sandeep chourasia
sandeepchrs@yahoo.com (on facebook)
http://www.aspnetcodes.com/

Fundaravi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ajay.Kalol on: 6/8/2012 [Member] Starter | Points: 25

Up
0
Down
You can use the "typeof" operator to obtain information about a type.
The typeof operator returns a System.Type object for a given type.
The typeof operator has this general form:

typeof(type)

type is the type being obtained.
The System.Type object returned encapsulates the information associated with type.

Ajay
ajaypatelfromsanthal.blogspot.in

Fundaravi, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response