Questions tagged as 'reflection'

2
answers

Get public methods of a Java class

I need to get the list of public methods of a Java class, but I do not want to get the wait , toString , hasCode , etc, that the Java class inherits. I just want to get the public methods of that class, not those inherited from...
asked by 21.02.2018 / 13:28
1
answer

c # error when traversing objects dynamically

Good morning everyone. I have a webapi project assembled with the repository pattern and I need to make a modification to the answer that the _repository.getByFilter(...) method offers me. This returns a IQueryable and I need to...
asked by 06.09.2017 / 16:06
2
answers

Know the type of object and its properties from Listobject

I have a method that receives a list of objects: private void escribe(List<object> lista) that a priori I do not know what class they are and I want to know at the time of execution the properties of each of the objects within the lis...
asked by 03.08.2017 / 11:46
2
answers

Reflection vs. MapListString etc. etc

Random question: I have a JSON of a lot of kilobytes, already almost reaching the mega. I'm about to make it Java-istic and I'm in a list map: Map<List<Map<List, OMG>>>> data Or a full-fledged class: Depar...
asked by 25.04.2017 / 23:42
2
answers

Search for items in a list

Hello, I need to search for items from a list, I have a Client class public class Cliente { public int ClienteId { get; set; } public string RazonSocial { get; set; } public EnumDocumentoEdentidad DocumentoIdentidad { get; set; }...
asked by 16.10.2016 / 00:35
1
answer

How to go through this list?

I have a list with this structure called InputText : Which I try to go through with this code: public void MoveTo <T> ( Page pag , Object obj) { var InputText = pag.ChildControls().OfType<T>().ToLis...
asked by 15.05.2018 / 09:56
0
answers

how to create a class in time of execution

I'm a novice with the reflection emitted, I found a code for the creation of a class in time of execution: dynamically-create-a-class-at-runtime I want to make a class from reading a string vector and create a class called (for example Pati...
asked by 03.12.2018 / 23:26