Questions tagged [bindingflags]
18 questions
0
votes
4 answers
How get properties for a inherits class by this condition
I have a Person class that inherits PersonBase and this second class inherits EntityBase:
public class Person : PersonBase
{
virtual public string FirstName { get; set; }
virtual public string LastName { get; set; }
}
And
public…

Ehsan
- 3,431
- 8
- 50
- 70
-1
votes
1 answer
Proper use of Reflection and binding flags
I want to modify the below code to be able to use a private method
//use reflection to Load the data
var method =
typeof(MemberDataFactory)
.GetMethod("LoadData")
…

MichaelTaylor3D
- 1,615
- 3
- 18
- 32
-3
votes
1 answer
invoke non static method in c#
I want to invoke a class
"***" is the solution that works for me but I want to invoke
THIS IS THE SOLUTION THAT GIVES ME THE ERROR :
Type t = Type.GetType(svClass);
MethodInfo method = t.GetMethod("execute", BindingFlags.instance|…

lol
- 93
- 3
- 11