Problem I rewrote some code I posted earlier this month. It attempts to mimic C#’s nameof() by extracting names from […]
Tag: reflection
Feedback on automatic form filling with reflection
Problem Context: I need to fill a handful of .docx templates with answers that come from form.responses, which is a […]
Finding the name of a given constant using reflection
Problem The code below comes from the Arm_const class of my Android disassembler project: // ARM condition code public static […]
Can my string to instance construction be improved?
Problem I have a Dictionary<string, object> (named tableDict) that has been parsed from JSON. The string describes the intended construction […]
Setting value of controller controls for domain objects with Reflection
Problem Is my use of Java Reflection an OK design? Each domain object contains an annotation to declare what controller […]
Mapping ExpandoObject to another object type
Problem I am working on a helper method that maps properties from an ExpandoObject to a user supplied object and […]
Find log4net logfiles at runtime without adding dependency to project
Problem I was searching for a way to get all active log4net logfiles (if any) at runtime without adding a […]
Method to return a collection of objects, filtered by a string
Problem I have a Vehicle object which has a few properties such as Make, Model, Price, etc. I also have […]
Generic Null/Empty check for each property of a class
Problem I have created a method to check for null/empty values of class properties and if any null property is […]
Project Euler: Autorun problems
Problem I’ve found that it’s a huge pain to have to write the boilerplate code for each Project Euler problem […]