Questions tagged [system.reflection]

System.Reflection is a namespace of the .NET framework. It contains types that retrieve information about assemblies, modules, members, parameters, and other entities in managed code by examining their metadata.

System.Reflection is a namespace of the .NET framework. It contains types that retrieve information about assemblies, modules, members, parameters, and other entities in managed code by examining their metadata.

References

1116 questions
-3
votes
1 answer

Using reflection to find propert name and value and associated mapping

I have a class public Class Test { public string text1 {get;set;} public string Text2 {get;set;} } var Testobj = new Test(); Testobj.text1 = "col1"; Testobj.Text2 = "col2"; Now I have another class public Class TestRel { public string…
user1005310
  • 737
  • 2
  • 12
  • 40
-3
votes
2 answers

Suggested design patterns or basic use case of reflection?

I know some of relection capabilities, but i never understand exectly when and why should i use them , I would like some examples on how and when is a good idea to use it? What are the design patterns you know wich performed with reflection? Is…
Dr.Haimovitz
  • 1,568
  • 12
  • 16
-3
votes
1 answer

await Task using reflection in .Net for Store apps

There is a method which will take a Task as input and await. protected async Task DoTask(Task t) { //Do something await t; } The second method will accept the method name in string format and will create the method object using Reflection.…
TutuGeorge
  • 1,972
  • 2
  • 22
  • 42
-3
votes
3 answers

How to invoke a method using Reflection

for (int tsid = 1; tsid < controller.getRowCount(currentTest); tsid++) { // values from xls keyword = controller.getCellData(currentTest, "Keyword", tsid); //object=controller.getCellData(currentTest, "Object", tsid); currentTSID =…
Nilanjan Saha
  • 135
  • 2
  • 11
-4
votes
1 answer

Object vs dictionary performance .NET

I wish to store information in the propertyname-property format, and I was wondering whether I should use an object or Dictionary. The object allows me flexibility in the value types, where the properties might be age and name and nationality and…
Confused Soul
  • 358
  • 2
  • 12
-5
votes
2 answers

get viewModel from the controllerContext MVC

I need to obtain my viewmodel from the class ControllerContext. I need to read some poperty of the viewmodel ControllerContext. How can i do this?? using System; using System.Web; using System.Web.Routing; using System.Web.WebPages; namespace…
user1428798
  • 1,534
  • 3
  • 24
  • 50
1 2 3
74
75