Top "Gettype" questions

VB.net xml check element exist and if it has a value

I have an xml ant I am trying to chcke if an element exist and if yes then if it …

xml vb.net xml-parsing gettype
.NET : How do you get the Type of a null object?

I have a method with an out parameter that tries to do a type conversion. Basically: public void GetParameterValue(out …

c# .net types gettype
How return the type of a System.__COMObject in System.Type in C#

I'm doing a program and I want to do a Reflection, but for this, I need an Object of the …

c# reflection gettype comobject system.type
Get datatype from values passed as string

I am writing a framework that will connect to many different data source types and return values from these sources. …

c# gettype
Type.GetType() returning null

I have a web application that dynamically creates a web page using usercontrols. Within my code I have the following: …

c# asp.net web-applications user-controls gettype
C# How to Initialize Generic class with object of type "Type"

I recently had this problem. doSomething(typeof(int)); doSomething(typeof(MyClassA)); doSomething(typeof(MyClassB)); public void doSomething(Type _type) { var …

c# generics reflection typeof gettype
C# -- how does one access a class' static member, given an instance of that class?

In C#, suppose you have an object (say, myObject) that is an instance of class MyClass. Using myObject only, how …

c# static gettype
Why would System.Type.GetType("Xyz") return null if typeof(Xyz) exists?

I have come across a strange behaviour in my (huge) .NET 4 project. At some point in the code, I am …

assemblies clr types gettype
How to Identify type of a variable

How do i properly identify a type of variable in c++. I tried this to identify a type of variable : …

c++ types typeid gettype
Type.GetType(string typeName) returns null

My code is type = Type.GetType(key); Key which i pass is a namespace qualified name . My code is in …

c# class reflection activator gettype