Omgili - forum search, search forums  
  

Discussions about use reflection

Displaying 1 - 10 out of 149,497 discussions.  
Time Frame: (Any time)   Minimum number of replies: (2)   Minimum number of discussing users: (0)
  |  

Page: 1   2   3   4   5   6   7   8   9   10  
Keep this page open to be updated with the newest discussions automatically.
Hi all, I try to run a jar using reflection with the the getMethod and invoke method but ran in trouble with the arguments passed to the invoke method: String mainClass = myprog.Run; String[] args = new String[2]; args[0] = "-a"; args[1] = "-c ./config...
Started by on , 4 posts by 4 people.  
Maybe if we have a look at your main method, and in particular the way the arguments are managed, we... .
String[] args = new String[3]; args[0] = "-a"; args[1] = "-c"; args[2] = "./config/param.xml" But please provide the code which causes the exception .
I understand the reflection API (in c#) but I am not sure in what situation would I use it. What are some patterns - anti-patterns for using reflection?
Started by on , 17 posts by 17 people.  
Don't go looking for places to use it just binding....
Use reflection when you can't do what you want without use it a lot, but Reflection is a complex, slow beast.
Don't use reflection without a good reason.
Can a transient field in a class be obtained using reflection? (using getDeclaredField(..) )
Started by on , 3 posts by 3 people.  
The field is still declared by the class, so it is fair game for reflection..
It's the value will not be serialized.
So no logical reason for it not to be accessible by reflection.
Fields are included.
Ask your Facebook Friends
Possible Duplicates: When do you use reflection? Patterns/anti-patterns What exactly is Reflection and when is it a good approach? What is the need for reflection in .NET? What are the situations where it comes in handy?
Started by on , 8 posts by 8 people.  
The programming paradigm driven ....
You can use reflection to find all object of Type X in a given Assembly, or invoke some methodI think the Wikipedia article on reflection is pretty good: In computer science, reflection.
Hi, We've got into a very tricky scenario in a project. We have used lot of reflection in our project. We have .. Validation Framework driven by Attributes and Reflection Extension methods that transaforms a DataRow to an Entity Object using Attributes...
Started by on , 6 posts by 6 people.  
With regards to deciding not to use reflection is using it to get at properties you wouldn't normally have should dictate whether or not it is appropriate to use reflection and as with my comment, test, test to not ....
I am using reflection to convert datareader into the generic collection list. Can anybody suggest me the best way to implement reflection for this? I want the fastestway?
Started by on , 5 posts by 5 people.  
I then have a few object of the DotNetNuke framework... .
This way I avoid the need for reflection, and the performance is great.
I then use an interface from the DR.
Process where I create information objects that hold the data that is returned .
Is there a way to use .NET reflection to capture the values of all parameters/local variables?
Started by on , 7 posts by 7 people.  
Reflection will tell you the type of parameters that a method has but it won't help discover their values during any....
You might want to extract it.
It reads the Assembly.
Reflection is not used to capture information from the stack.
Duplicate How slow is Reflection (C#) What are some of the performance considerations when using reflection to iterate through properties and using attributes on properties in c#.net?
Started by on , 4 posts by 4 people.  
In reflection we trust But issues there are Despair I read MS's own docs : "If you have to ask, don't use it".
Yes? There are performance issues when using reflection.
I need to find the caller of a method. Is it possible using stacktrace or reflection?
Started by on , 7 posts by 7 people.  
The only issue is it may not be present.
Are using reflection, it skips those frames automatically.
How I can get the name of the parent class of some class using Reflection on C#?
Started by on , 5 posts by 5 people.  
Obj.GetType().BaseType.Name Like so: typeof(Typ).BaseType.Name You can use: string baseclassName.
Page: 1   2   3   4   5   6   7   8   9   10  
More Information


Forum Search About Omgili Help Plugins Forum/Board Owners Privacy

i
In Title
In Topic
In Reply
Exclude
Boost