Tag: reflection

1773 What is reflection and why is it useful? 2008-09-01T08:39:21.633

929 How to create a generic array in Java? 2009-02-09T17:30:44.417

887 How do I use reflection to call a generic method? 2008-10-24T05:17:35.217

724 Get property value from string using reflection in C# 2009-07-28T21:58:51.230

682 How do I get the path of the assembly the code is in? 2008-09-09T20:12:28.340

602 How do I invoke a Java method when given the method name as a string? 2008-10-02T05:15:43.430

596 Get a new object instance from a Type 2008-08-03T16:29:03.607

549 Checking if a variable is defined? 2008-11-13T23:14:05.657

491 How to get the list of properties of a class? 2009-04-10T09:29:55.393

464 Getting all types that implement an interface 2008-08-25T19:57:21.903

463 How to determine if a type implements an interface with C# reflection 2011-02-10T21:49:47.320

455 Programmatic equivalent of default(Type) 2008-11-28T10:11:47.260

452 Can you find all classes in a package using reflection? 2009-02-06T13:43:16.810

419 Open Source Alternatives to Reflector? 2010-03-11T15:00:09.590

414 What is the difference between instanceof and Class.isAssignableFrom(...)? 2009-01-30T19:44:24.013

404 How to read the value of a private field from a different class in Java? 2009-07-28T19:20:00.147

401 Get generic type of class at runtime 2010-08-04T08:44:44.990

400 Getting the name of the currently executing method 2009-01-14T12:20:39.497

397 Change private static final field using Java reflection 2010-07-21T16:35:48.893

391 Getting attributes of Enum's value 2009-11-25T19:23:22.483

374 Is a Java string really immutable? 2014-01-06T07:26:51.617

333 C# getting its own class name 2010-01-21T21:30:26.173

308 Why does C++ not have reflection? 2008-12-11T12:52:01.673

297 Test if object implements interface 2009-01-04T01:25:10.487

296 How to list all functions in a Python module? 2008-09-26T12:38:52.417

290 What are the use(s) for tags in Go? 2012-06-02T00:10:27.360

288 How do I check if a type is a subtype OR the type of an object? 2010-04-30T04:23:33.593

285 How do I use reflection to invoke a private method? 2008-09-25T19:26:14.377

273 Set object property using reflection 2009-03-06T17:50:10.960

272 Check if a class is derived from a generic class 2009-01-19T14:10:18.140

272 Setting a property by reflection with a string value 2009-07-06T20:43:19.247

264 How to get function parameter names/values dynamically? 2009-06-17T15:57:13.593

264 What could cause java.lang.reflect.InvocationTargetException? 2011-05-16T16:57:04.773

263 Creating an instance using the class name and calling constructor 2011-05-23T08:20:35.103

262 How to tell if a JavaScript function is defined 2008-09-17T17:50:53.073

251 Convert.ChangeType() fails on Nullable Types 2010-08-20T13:36:15.170

246 How can I get a list of all classes within current module in Python? 2009-11-25T10:59:46.297

233 Getting all types in a namespace via reflection 2008-09-17T03:35:24.677

217 How can I add reflection to a C++ application? 2008-09-03T10:59:05.883

206 Casting a variable using a Type variable 2009-06-09T21:39:21.637

193 How to determine if a type implements a specific generic interface type 2009-02-02T13:50:39.793

192 How costly is .NET reflection? 2008-08-24T23:40:16.647

188 Find a private field with Reflection? 2008-09-18T19:16:32.300

188 Why would finding a type's initializer throw a NullReferenceException? 2012-07-21T15:51:34.110

185 Can you use reflection to find the name of the currently executing method? 2008-09-04T16:45:35.870

183 How to check whether a variable is a class or not? 2008-12-28T03:08:05.600

182 Reflection - get attribute name and value on property 2011-07-09T21:45:37.050

179 How to get a list of properties with a given attribute? 2010-02-17T15:35:21.600

177 Type.GetType("namespace.a.b.ClassName") returns null 2009-12-01T09:53:15.330

176 Get the name of the currently executing method 2008-10-14T00:14:06.580

170 Reflection: How to Invoke Method with parameters 2010-02-04T19:02:49.200

165 Invoking a static method using reflection 2010-03-18T04:33:58.333

164 Get name of property as a string 2010-05-12T16:12:06.447

163 Java array reflection: isArray vs. instanceof 2008-10-20T20:56:36.757

163 Why is Attributes.IsDefined() missing overloads? 2010-06-11T21:37:25.473

155 How to loop through all the properties of a class? 2009-02-10T07:44:42.150

153 How do I get the calling method name and type using reflection? 2010-06-22T17:51:06.650

151 Check if a class is subclass of another class in Java 2011-01-03T12:47:19.863

149 Getting assembly name 2010-11-24T11:24:03.060

146 Can a line of Python code know its indentation nesting level? 2016-08-26T18:07:24.830

144 Why can't GetType() find types when invoked through a method group delegate? 2016-02-29T14:23:45.543

143 What's invokedynamic and how do I use it? 2011-07-10T02:15:52.813

143 What is the difference between getFields and getDeclaredFields in Java reflection 2013-06-06T15:51:09.380

142 How To Test if Type is Primitive 2010-03-14T14:58:59.877

140 How do I intercept a method call in C#? 2008-08-25T09:00:23.883

139 Java Reflection Performance 2009-01-12T14:25:03.023

135 Retrieve only static fields declared in Java class 2010-08-06T09:10:19.127

133 BindingFlags.IgnoreCase not working for Type.GetProperty()? 2008-11-05T10:05:10.533

133 How to check whether an object has certain method/property? 2011-02-25T06:53:09.930

128 At runtime, find all classes in a Java application that extend a base class 2008-10-15T17:07:27.050

124 Using Case/Switch and GetType to determine the object 2009-04-02T09:07:04.317

124 Objective-C class -> string like: [NSArray className] -> @"NSArray" 2010-02-25T06:01:05.053

124 Get properties and values from unknown object 2010-11-10T13:11:02.800

122 Any way to Invoke a private method? 2009-05-19T00:01:10.540

119 Get type of a generic parameter in Java with reflection 2009-12-14T14:15:18.040

119 Why do some C# lambda expressions compile to static methods? 2014-09-01T10:40:19.600

118 How do I reflect over the members of dynamic object? 2010-04-14T04:20:20.567

117 How to dynamically load a Python class 2009-02-13T21:49:04.940

116 Testing if object is of generic type in C# 2009-06-11T17:27:55.187

115 Java Reflection: How to get the name of a variable? 2009-04-13T15:17:48.277

113 Calling generic method with a type argument known only at execution time 2008-11-28T06:28:55.647

110 How to get a property value based on the name 2011-04-01T00:41:29.533

109 How to dynamically create generic C# object using reflection? 2009-07-20T01:58:03.853

109 How can I reliably determine the type of a variable that is declared using var at design time? 2010-05-15T15:21:12.807

108 What is the difference between JDK dynamic proxy and CGLib? 2012-05-19T10:03:46.660

107 Is it possible to set private property via reflection? 2009-10-14T11:37:41.800

107 Does Swift support reflection? 2014-06-05T12:48:16.437

106 Best way of invoking getter by reflection 2010-04-14T15:14:54.277

105 Can I change a private readonly field in C# using reflection? 2009-06-01T13:56:41.847

105 Retrieving the inherited attribute names/values using Java Reflection 2009-06-25T09:11:21.930

104 Reflection generic get field value 2012-11-15T14:55:24.020

100 How to Load an Assembly to AppDomain with all references recursively? 2009-03-18T14:30:09.567

100 Can I obtain method parameter name using Java reflection? 2010-02-10T15:10:34.547

98 Convert a python 'type' object to a string 2011-02-15T19:58:04.593

98 How can I get all constants of a type by reflection? 2012-04-21T18:36:23.100

97 C# generic list <T> how to get the type of T? 2009-06-25T12:57:39.197

97 How to enumerate an object's properties in Python? 2009-08-09T16:33:02.813

97 Access to private inherited fields via reflection in Java 2010-08-25T15:11:36.330

96 How to limit setAccessible to only "legitimate" uses? 2010-03-20T04:00:24.423