Click here to Skip to main content
15,895,423 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: pocket pc application Pin
zagzagzag3-Jan-05 1:21
zagzagzag3-Jan-05 1:21 
GeneralWindows CE - instrument Pin
Sarvesvara (BVKS) Dasa29-Dec-04 7:43
Sarvesvara (BVKS) Dasa29-Dec-04 7:43 
GeneralRe: Windows CE - instrument Pin
zagzagzag3-Jan-05 1:11
zagzagzag3-Jan-05 1:11 
GeneralPerformance Pin
lhi29-Dec-04 0:36
lhi29-Dec-04 0:36 
GeneralRe: Performance Pin
Robert Rohde29-Dec-04 3:31
Robert Rohde29-Dec-04 3:31 
General.NET Framework on NT 4.0 Pin
sevan28-Dec-04 22:03
sevan28-Dec-04 22:03 
GeneralRe: .NET Framework on NT 4.0 Pin
Mike Dimmick31-Dec-04 4:38
Mike Dimmick31-Dec-04 4:38 
Generalquestion about static Type.GetType(string) Pin
Member 103504428-Dec-04 10:41
Member 103504428-Dec-04 10:41 
Hi all, I am a little confused by the static function GetType(string) of Type.

if I pass in "System.Int32", it will return a type, but if I pass in "System.Windows.Forms.Button", it will return null, but if I pass in "System.Windows.Forms.Button, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
it works a again.
The document didn't mention I must supply a strong name. Is there anyway to make it work with name like "System.Windows.Forms.Button"?


Here is a small test code

static void Main(string[] args)
{
Test("System.Int32");
Test("Int32");
Test("System.Windows.Forms.Button");
Test(typeof(System.Windows.Forms.Button).AssemblyQualifiedName);
Test(typeof(System.Windows.Forms.Button).FullName);

}
static void Test(string s)
{
Console.WriteLine("typename : {0}",s);
Type t = Type.GetType(s);
if(t!=null)
{
Console.WriteLine("GetType succeeded");
Console.WriteLine("Fullname : {0}",t.FullName);
Console.WriteLine("AssemblyQualifiedName : {0}",t.AssemblyQualifiedName);
}
else
{
Console.WriteLine("GetType failed");
}
Console.WriteLine();
}

Thx!
GeneralRe: question about static Type.GetType(string) Pin
Robert Rohde28-Dec-04 23:42
Robert Rohde28-Dec-04 23:42 
GeneralRe: question about static Type.GetType(string) Pin
Member 103504429-Dec-04 6:41
Member 103504429-Dec-04 6:41 
GeneralJit Debugger Pin
Anu_K28-Dec-04 10:08
Anu_K28-Dec-04 10:08 
GeneralProblem Related to Delegates Serialization & Remoting Pin
Identity Undisclosed27-Dec-04 21:03
Identity Undisclosed27-Dec-04 21:03 
GeneralRe: Problem Related to Delegates Serialization & Remoting Pin
Robert Rohde28-Dec-04 23:29
Robert Rohde28-Dec-04 23:29 
GeneralRe: Problem Related to Delegates Serialization & Remoting Pin
Identity Undisclosed29-Dec-04 0:29
Identity Undisclosed29-Dec-04 0:29 
GeneralRe: Problem Related to Delegates Serialization & Remoting Pin
Adam Goossens30-Dec-04 2:42
Adam Goossens30-Dec-04 2:42 
GeneralTreeNodes and Fonts Pin
Beringer27-Dec-04 19:21
Beringer27-Dec-04 19:21 
GeneralTrace Class question Pin
Spiros27-Dec-04 5:07
Spiros27-Dec-04 5:07 
GeneralRe: Trace Class question Pin
Robert Rohde28-Dec-04 23:32
Robert Rohde28-Dec-04 23:32 
GeneralWindows CE Pin
zagzagzag27-Dec-04 1:55
zagzagzag27-Dec-04 1:55 
GeneralRe: Windows CE Pin
Robert Rohde28-Dec-04 23:39
Robert Rohde28-Dec-04 23:39 
GeneralRe: Windows CE Pin
zagzagzag1-Jan-05 11:51
zagzagzag1-Jan-05 11:51 
GeneralSome doubts in exposing .NET component to a COM client Pin
harishcom26-Dec-04 17:13
harishcom26-Dec-04 17:13 
QuestionWhere can I get the Microsoft Windows .NET DDK? Pin
momer25-Dec-04 20:04
momer25-Dec-04 20:04 
GeneralRunning process in background Pin
mmsspp22-Dec-04 23:02
mmsspp22-Dec-04 23:02 
GeneralRe: Running process in background Pin
T Manjaly6-Jan-05 13:37
T Manjaly6-Jan-05 13:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.