tagged [reflection]
Getting the name of the currently executing method
Getting the name of the currently executing method Is there a way to get the name of the currently executing method in Java?
- Modified
- 30 Jul at 12:8
How to get interface basetype via reflection?
How to get interface basetype via reflection? How can I get IBar?
- Modified
- 11 Feb at 20:11
How to call the non Default constructor with assembly.CreateInstance
How to call the non Default constructor with assembly.CreateInstance I need to call the Non default constructor when using assembly.CreateInstance. how?
- Modified
- 28 Jun at 00:45
How to read a method body with reflection
How to read a method body with reflection Is it possible to find out anything about a Method body with reflection? How?
- Modified
- 13 Feb at 20:12
How can I get all constants of a type by reflection?
How can I get all constants of a type by reflection? How can I get all constants of any type using reflection?
- Modified
- 21 Apr at 18:56
Java array reflection: isArray vs. instanceof
Java array reflection: isArray vs. instanceof Is there a preference or behavior difference between using: and ?
- Modified
- 20 Oct at 20:56
How to get the list of properties of a class?
How to get the list of properties of a class? How do I get a list of all the properties of a class?
- Modified
- 16 Jun at 08:37
How to check if property setter is public
How to check if property setter is public Given a PropertyInfo object, how can I check that the setter of the property is public?
- Modified
- 13 May at 01:28
How to find the child class name from base class?
How to find the child class name from base class? At `run-time`, inside `base class`, how to find the current child class name ?
- Modified
- 23 Jan at 16:14
Why GetCustomAttributes returns object[] instead of Attribute[]?
Why GetCustomAttributes returns object[] instead of Attribute[]? Just curious, see `MemberInfo.GetCustomAttributes`. Is it hinting that it may contain a non-Attribute object?
- Modified
- 1 Mar at 06:19
Get all variable names in a class
Get all variable names in a class I have a class and I want to find all of its (not methods). How can I do this?
- Modified
- 3 Apr at 11:55
Are anonymous types in c# accessible through reflection?
Are anonymous types in c# accessible through reflection? As the name of the anonymous type is compiler generated, so is it accessible through reflection?
- Modified
- 10 Feb at 06:35
Get class that method was defined in?
Get class that method was defined in? Given a `MethodInfo` object, how can I get the `Type` object for the class that it was defined in?
- Modified
- 1 Jan at 23:58
Can I change value of constant in C#?
Can I change value of constant in C#? I need this hack for legacy .NET dll which cannot be recompiled. Some hack e.g. using reflection, etc.
- Modified
- 30 May at 09:24
For an object, can I get all its subclasses using reflection or other ways?
For an object, can I get all its subclasses using reflection or other ways? For an object, can I get all its subclasses using reflection?
- Modified
- 19 Jan at 15:43
I want to get the type of a variable at runtime
I want to get the type of a variable at runtime I want to get the type of a variable at runtime. How do I do this?
- Modified
- 12 Feb at 03:59
How do I get a list of all loaded Types in C#?
How do I get a list of all loaded Types in C#? I need to retrieve all enums that were loaded from a given set of Assemblies.
- Modified
- 16 Dec at 11:26
Get dependent assemblies?
Get dependent assemblies? Is there a way to get all assemblies that depend on a given assembly? Pseudo:
- Modified
- 13 Jan at 10:44
How to get the value of a private static field from a class?
How to get the value of a private static field from a class? Is there any way to get value of private static field from known class using reflection?
- Modified
- 20 Jan at 10:28
Why doesn't C# switch statement allow using typeof/GetType()?
Why doesn't C# switch statement allow using typeof/GetType()? As in this example:
- Modified
- 10 Nov at 20:34
.net reflection and the "params" keyword
.net reflection and the "params" keyword In .net, is there a way using reflection to determine if a parameter on a method is marked with the "params" keyword?
- Modified
- 1 May at 03:40
Why is the use of reflection in .NET recommended?
Why is the use of reflection in .NET recommended? Is it definitely a good practice to use it? What are some possible situations in a project that need reflection?
- Modified
- 15 Feb at 22:32
Why does typeof(string[][,]).Name return String[,][]
Why does typeof(string[][,]).Name return String[,][] I hope there is a reason that I simply don't know yet. Why does `typeof(string[][,])` return `String[,][]` as name?
- Modified
- 9 Mar at 13:9
How can I dynamically add a field to a class in C#
How can I dynamically add a field to a class in C# Is there any way to add `Field` (or `FieldInfo`, maybe this is the same) to a class at runtime?
- Modified
- 9 Aug at 23:28
Practical example of Dynamic method?
Practical example of Dynamic method? I want to learn dynamic method and its practical example using c#. Is there any relation between dynamic method and Reflection? Please help me.
- Modified
- 15 Jan at 19:15