Click here to Skip to main content
15,905,914 members
Home / Discussions / C#
   

C#

 
AnswerRe: multithreading problem Pin
Josh Smith29-Jun-06 11:10
Josh Smith29-Jun-06 11:10 
QuestionRe: multithreading problem Pin
therealmccoy29-Jun-06 12:03
therealmccoy29-Jun-06 12:03 
AnswerRe: multithreading problem Pin
Mike Poz29-Jun-06 21:22
Mike Poz29-Jun-06 21:22 
GeneralRe: multithreading problem Pin
CherezZaboro30-Jun-06 5:50
CherezZaboro30-Jun-06 5:50 
GeneralRe: multithreading problem Pin
Mike Poz30-Jun-06 7:02
Mike Poz30-Jun-06 7:02 
QuestionRe: multithreading problem Pin
CherezZaboro30-Jun-06 7:27
CherezZaboro30-Jun-06 7:27 
AnswerRe: multithreading problem Pin
Mike Poz30-Jun-06 10:40
Mike Poz30-Jun-06 10:40 
QuestionReflection with static inherited methods Pin
osamahmirza29-Jun-06 10:45
osamahmirza29-Jun-06 10:45 
Hi,
I am trying to invoke a static method on "a_class" which is derived by "another_class" and the static function I am trying to invoke in "another_class".
The problem is that I am trying to do this by using reflections. And by using reflections on "a_class" I can not see any MethodInfo for any static method declared in "another_class".
I am trying to do something as follows:

//I will be getting a generic collection in this object
object oCollection;
//Getting the type
Type factoryType = BuildManager.GetType("My.NameSpace.Class", true);
//Calling a static function on factoryType
oCollection = factoryType.InvokeMember("GetByFilter",
BindingFlags.NonPublic | BindingFlags.Public |
BindingFlags.Static | BindingFlags.InvokeMethod |
BindingFlags.DeclaredOnly | BindingFlags.FlattenHierarchy,
null, null, new object[] { });

Can anybody kindly tell me how can I achive this?
Thanks in advance

Stuck
AnswerRe: Reflection with static inherited methods Pin
Josh Smith29-Jun-06 11:04
Josh Smith29-Jun-06 11:04 
GeneralRe: Reflection with static inherited methods Pin
guroo1329-Jun-06 12:57
guroo1329-Jun-06 12:57 
AnswerRe: Reflection with static inherited methods Pin
Guffa29-Jun-06 13:40
Guffa29-Jun-06 13:40 
GeneralRe: Reflection with static inherited methods Pin
guroo1329-Jun-06 13:51
guroo1329-Jun-06 13:51 
QuestionVS 2005 User Control Toolbox question Pin
LongRange.Shooter29-Jun-06 10:34
LongRange.Shooter29-Jun-06 10:34 
AnswerRe: VS 2005 User Control Toolbox question Pin
Kamal Sagar30-Jun-06 1:10
Kamal Sagar30-Jun-06 1:10 
GeneralRe: VS 2005 User Control Toolbox question Pin
LongRange.Shooter30-Jun-06 11:55
LongRange.Shooter30-Jun-06 11:55 
QuestionHere's a wierd one for you... Pin
BoneSoft29-Jun-06 10:29
BoneSoft29-Jun-06 10:29 
AnswerRe: Here's a wierd one for you... Pin
LongRange.Shooter29-Jun-06 10:38
LongRange.Shooter29-Jun-06 10:38 
GeneralRe: Here's a wierd one for you... Pin
BoneSoft29-Jun-06 10:44
BoneSoft29-Jun-06 10:44 
AnswerRe: Here's a wierd one for you... Pin
led mike29-Jun-06 10:51
led mike29-Jun-06 10:51 
GeneralRe: Here's a wierd one for you... Pin
BoneSoft29-Jun-06 10:55
BoneSoft29-Jun-06 10:55 
AnswerRe: Here's a wierd one for you... Pin
Josh Smith29-Jun-06 11:09
Josh Smith29-Jun-06 11:09 
GeneralRe: Here's a wierd one for you... Pin
BoneSoft29-Jun-06 11:12
BoneSoft29-Jun-06 11:12 
GeneralRe: Here's a wierd one for you... Pin
Josh Smith29-Jun-06 11:12
Josh Smith29-Jun-06 11:12 
GeneralRe: Here's a wierd one for you... [modified] Pin
BoneSoft29-Jun-06 11:31
BoneSoft29-Jun-06 11:31 
QuestionTWAIN on Windows 2000 Pin
allenmpcx29-Jun-06 9:12
allenmpcx29-Jun-06 9:12 

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.